TextLineMetrics Structure

Represents a metric for a TextLine objects, that holds information about ascent, descent, line gap, size and origin of the text line.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct TextLineMetrics : IEquatable<TextLineMetrics>
Inheritance
Object    ValueType    TextLineMetrics
Implements
IEquatableTextLineMetrics

Properties

Extent Gets the distance from the top-most to bottom-most black pixel in a line.
HasOverflowed Gets a value that indicates whether content of the line overflows the specified paragraph width.
Height Gets the height of a line of text.
NewlineLength Gets the number of newline characters at the end of a line.
OverhangAfter Gets the distance that black pixels extend beyond the bottom alignment edge of a line.
OverhangLeading Gets the distance that black pixels extend prior to the left leading alignment edge of the line.
OverhangTrailing Gets the distance that black pixels extend following the right trailing alignment edge of the line.
Start Gets the distance from the start of a paragraph to the starting point of a line.
TextBaseline Gets the distance from the top to the baseline of the line of text.
TrailingWhitespaceLength Gets the number of whitespace code points beyond the last non-blank character in a line.
Width Gets the width of a line of text, excluding trailing whitespace characters.
WidthIncludingTrailingWhitespace Gets the width of a line of text, including trailing whitespace characters.

Methods

GetTypeGets the Type of the current instance.
(Inherited from Object)

See Also