Skip to main content

TextLine Properties

Properties

BaselineGets the distance from the top to the baseline of the current TextLine object.
ExtentGets the distance from the top-most to bottom-most black pixel in a line.
FirstTextSourceIndexGets the first TextSource position of the current line.
HasCollapsedGets a value that indicates whether the line is collapsed.
HasOverflowedGets a value that indicates whether content of the line overflows the specified paragraph width.
HeightGets the height of a line of text.
LengthGets the total number of TextSource positions of the current line.
NewLineLengthGets the number of newline characters at the end of a line.
OverhangAfterGets the distance that black pixels extend beyond the bottom alignment edge of a line.
OverhangLeadingGets the distance that black pixels extend prior to the left leading alignment edge of the line.
OverhangTrailingGets the distance that black pixels extend following the right trailing alignment edge of the line.
StartGets the distance from the start of a paragraph to the starting point of a line.
TextLineBreakGets the state of the line when broken by line breaking process.
TextRunsGets the text runs that are contained within a line.
TrailingWhitespaceLengthGets the number of whitespace code points beyond the last non-blank character in a line.
WidthGets the width of a line of text, excluding trailing whitespace characters.
WidthIncludingTrailingWhitespaceGets the width of a line of text, including trailing whitespace characters.

See Also

Reference

TextLine Class
Avalonia.Media.TextFormatting Namespace