Skip to main content

TextLayout Properties

Properties

BaselineThe distance from the top of the first line to the baseline of the first line.
ExtentThe distance from the topmost black pixel of the first line to the bottommost black pixel of the last line.
HeightThe distance from the top of the first line to the bottom of the last line.
LetterSpacingGets the text spacing.
LineHeightGets or sets the height of each line of text.
MaxHeightGets the maximum height.
MaxLinesGets the maximum number of text lines.
MaxWidthGets the maximum width.
OverhangAfterThe distance from the bottom of the last line to the extent bottom.
OverhangLeadingThe maximum distance from the leading black pixel to the leading alignment point of a line.
OverhangTrailingThe maximum distance from the trailing black pixel to the trailing alignment point of a line.
TextLinesGets the text lines.
WidthThe maximum advance width between the leading and trailing alignment points of a line, excluding the width of whitespace characters at the end of the line.
WidthIncludingTrailingWhitespaceThe maximum advance width between the leading and trailing alignment points of a line, including the width of whitespace characters at the end of the line.

See Also

Reference

TextLayout Class
Avalonia.Media.TextFormatting Namespace