TextLine Class
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Represents a laid out line of text.
public class TextLine
Inheritance
TextLine → object
Constructors
TextLine() | Constructs a new TextLine. |
Properties
BaseLine | Gets the base line of this line (relative to YCoord) |
End | The code point index of the first character after this line |
Height | Gets the height of this line |
Length | The length of this line in codepoints |
MaxAscent | Gets the maximum magnitude ascent of all font runs in this line. |
MaxDescent | Gets the maximum descent of all font runs in this line. |
NextLine | Gets the next line in this text block, or null if this is the last line. |
PreviousLine | Gets the previous line in this text block, or null if this is the first line. |
Runs | Gets the set of text runs comprising this line. |
Start | Code point index of start of this line |
TextBlock | Gets the text block that owns this line. |
TextHeight | Gets the text height of this line. |
Width | The width of the content on this line, excluding trailing whitespace and overhang. |
YCoord | Gets the y-coordinate of the top of this line, relative to the top of the text block. |
Methods
HitTest(float) | Hit test this line, working out the cluster the x position is over and closest to. |