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)
- C#
- VB
- F#
public readonly struct TextLineMetrics : IEquatable<TextLineMetrics>
Public Structure TextLineMetrics
Implements IEquatable(Of TextLineMetrics)
[<SealedAttribute>]
type TextLineMetrics =
struct
inherit ValueType
interface IEquatable<TextLineMetrics>
end
| Inheritance | Object → ValueType → TextLineMetrics |
| Implements | IEquatable(TextLineMetrics) |
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
| GetType() | Gets the Type of the current instance. (Inherited from Object) |