TextTabStop Struct
A tabulation stop of a line: where the text after a tabulation goes, and how it is aligned there.
public readonly struct TextTabStop : IEquatable<TextTabStop>Remarks
The position is measured from where the text of the line starts (after the indent of the line, as the stops of TextLayoutOptions.TabSize are), along the line: from the left of a left-to-right paragraph, from the right of a right-to-left one, and from the top of a vertical line.
See also
- Implements
Constructors
| Name | Description |
|---|---|
| TextTabStop(double, TextTabAlignment, char) | Initializes a tabulation stop. |
TextTabStop(double, TextTabAlignment, char)
TextTabStop.csInitializes a tabulation stop.
public TextTabStop(double position, TextTabAlignment alignment = TextTabAlignment.Start, char decimalSeparator = '.')Parameters
positiondouble- The distance of the stop from the start of the text of the line, in pixels: a positive number up to 1048576.
alignmentTextTabAlignment- How the text after the tabulation is placed at the stop.
decimalSeparatorchar- The character a
TextTabAlignment.DecimalSeparatorstop aligns: the period by default.
Exceptions
ArgumentOutOfRangeExceptionpositionis not a positive number up to 1048576, oralignmentis not a member ofTextTabAlignment.
Properties
| Name | Description |
|---|---|
| Alignment | Gets how the text after the tabulation is placed at the stop. |
| DecimalSeparator | Gets the character a TextTabAlignment.DecimalSeparator stop aligns. |
| Position | Gets the distance of the stop from the start of the text of the line, in pixels. |
Alignment
TextTabStop.csGets how the text after the tabulation is placed at the stop.
public TextTabAlignment Alignment { get; }Property value
DecimalSeparator
TextTabStop.csGets the character a TextTabAlignment.DecimalSeparator stop aligns.
public char DecimalSeparator { get; }Property value
Position
TextTabStop.csMethods
| Name | Description |
|---|---|
| Equals(TextTabStop) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the stop in the form 120 End. |
Equals overloads
Equals(TextTabStop)
TextTabStop.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(TextTabStop other)Parameters
otherTextTabStop- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
TextTabStop.csGetHashCode()
TextTabStop.csToString()
TextTabStop.csOperators
| Name | Description |
|---|---|
| operator ==(TextTabStop, TextTabStop) | Determines whether two tabulation stops are the same. |
| operator !=(TextTabStop, TextTabStop) | Determines whether two tabulation stops differ. |
operator ==(TextTabStop, TextTabStop)
TextTabStop.csDetermines whether two tabulation stops are the same.
public static bool operator ==(TextTabStop left, TextTabStop right)operator !=(TextTabStop, TextTabStop)
TextTabStop.csDetermines whether two tabulation stops differ.
public static bool operator !=(TextTabStop left, TextTabStop right)