Struct LineMetrics1
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
Contains information about a formatted line of text.
public struct LineMetrics1
- Inherited Members
Fields
Baseline
The distance from the top of the text line to its baseline.
public float Baseline
Field Value
Height
The height of the text line.
public float Height
Field Value
IsTrimmed
The line is trimmed.
public RawBool IsTrimmed
Field Value
- RawBool
LeadingAfter
White space after the content of the line. This is included in the height of the line. If the line is formatted horizontally either with a uniform line spacing or with proportional line spacing, this value represents the extra space below the content.
public float LeadingAfter
Field Value
LeadingBefore
White space before the content of the line. This is included in the line height and baseline distances. If the line is formatted horizontally either with a uniform line spacing or with proportional line spacing, this value represents the extra space above the content.
public float LeadingBefore
Field Value
Length
The number of text positions in the text line. This includes any trailing whitespace and newline characters.
public int Length
Field Value
NewlineLength
The number of characters in the newline sequence at the end of the text line. If the count is zero, then the text line was either wrapped or it is the end of the text.
public int NewlineLength
Field Value
TrailingWhitespaceLength
The number of whitespace positions at the end of the text line. Newline sequences are considered whitespace.
public int TrailingWhitespaceLength