TextLineMetrics Struct
Definition
Represents a metric for a Avalonia.Media.TextFormatting.TextLine objects, that holds information about ascent, descent, line gap, size and origin of the text line.
public struct TextLineMetrics
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No summary available. |
Equals overloads
Equals Method
public bool Equals(Avalonia.Media.TextFormatting.TextLineMetrics other)
Parameters
other Avalonia.Media.TextFormatting.TextLineMetrics
Returns
bool
Equals Method
public bool Equals(object obj)
Parameters
obj object
Returns
bool
GetHashCode Method
public int GetHashCode()
Returns
int
ToString Method
public string ToString()
Returns
string
Properties
| Name | Description |
|---|---|
| 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. |
Extent Property
Gets the distance from the top-most to bottom-most black pixel in a line.
public double Extent { get; set; }
HasOverflowed Property
Gets a value that indicates whether content of the line overflows the specified paragraph width.
public bool HasOverflowed { get; set; }
Height Property
Gets the height of a line of text.
public double Height { get; set; }
NewlineLength Property
Gets the number of newline characters at the end of a line.
public int NewlineLength { get; set; }
OverhangAfter Property
Gets the distance that black pixels extend beyond the bottom alignment edge of a line.
public double OverhangAfter { get; set; }
OverhangLeading Property
Gets the distance that black pixels extend prior to the left leading alignment edge of the line.
public double OverhangLeading { get; set; }
OverhangTrailing Property
Gets the distance that black pixels extend following the right trailing alignment edge of the line.
public double OverhangTrailing { get; set; }
Start Property
Gets the distance from the start of a paragraph to the starting point of a line.
public double Start { get; set; }
TextBaseline Property
Gets the distance from the top to the baseline of the line of text.
public double TextBaseline { get; set; }
TrailingWhitespaceLength Property
Gets the number of whitespace code points beyond the last non-blank character in a line.
public int TrailingWhitespaceLength { get; set; }
Width Property
Gets the width of a line of text, excluding trailing whitespace characters.
public double Width { get; set; }
WidthIncludingTrailingWhitespace Property
Gets the width of a line of text, including trailing whitespace characters.
public double WidthIncludingTrailingWhitespace { get; set; }