TextPathOptions Class
How a text is placed along a path.
public sealed class TextPathOptionsRemarks
The options are immutable; TextPathOptions.Default starts the text at the start of the path, on its left.
Constructors
| Name | Description |
|---|---|
| TextPathOptions() |
TextPathOptions()
public TextPathOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alignment | Gets where the text is placed along the path. TextPathAlignment.Start by default. |
| BaselineOffset | Gets the distance from the path to the baseline of the first line of the text, in pixels: positive to move the text away from the path, on the side it stands on; negative to sink it across the path. 0 by default: the baseline is on the path. |
| Default | Gets the default options. |
| Overflow | Gets what happens to the text beyond the ends of the path. TextPathOverflow.Extend by default. |
| Side | Gets the side of the path the text is drawn on. TextPathSide.Left by default. |
| StartOffset | Gets the distance the text is moved along the path from where TextPathOptions.Alignment puts it, in pixels; negative to move it back. 0 by default. |
Alignment
TextPathOptions.csGets where the text is placed along the path. TextPathAlignment.Start by default.
public TextPathAlignment Alignment { get; init; }BaselineOffset
TextPathOptions.csGets the distance from the path to the baseline of the first line of the text, in pixels: positive to move the text away from the path, on the side it stands on; negative to sink it across the path. 0 by default: the baseline is on the path.
public double BaselineOffset { get; init; }Property value
Exceptions
ArgumentOutOfRangeException- The value is not finite, or its magnitude exceeds 16777216.
Default
TextPathOptions.csOverflow
TextPathOptions.csGets what happens to the text beyond the ends of the path. TextPathOverflow.Extend by default.
public TextPathOverflow Overflow { get; init; }Gets the side of the path the text is drawn on. TextPathSide.Left by default.
public TextPathSide Side { get; init; }StartOffset
TextPathOptions.csGets the distance the text is moved along the path from where TextPathOptions.Alignment puts it, in pixels; negative to move it back. 0 by default.
public double StartOffset { get; init; }Property value
Exceptions
ArgumentOutOfRangeException- The value is not finite, or its magnitude exceeds 16777216.