Struct TextMetrics1
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
Contains the metrics associated with text after layout. All coordinates are in device independent pixels (DIPs).
public struct TextMetrics1
- Inherited Members
Fields
Height
The height of the formatted text. The height of an empty string is set to the same value as that of the default font.
public float Height
Field Value
HeightIncludingTrailingWhitespace
A value that indicates the left-most point of formatted text relative to the layout box, while excluding any glyph overhang.
public float HeightIncludingTrailingWhitespace
Field Value
LayoutHeight
Initial height given to the layout. Depending on the length of the text, it may be larger or smaller than the text content height.
public float LayoutHeight
Field Value
LayoutWidth
The initial width given to the layout. It can be either larger or smaller than the text content width, depending on whether the text was wrapped.
public float LayoutWidth
Field Value
Left
A value that indicates the left-most point of formatted text relative to the layout box, while excluding any glyph overhang.
public float Left
Field Value
LineCount
Total number of lines.
public int LineCount
Field Value
MaxBidiReorderingDepth
The maximum reordering count of any line of text, used to calculate the most number of hit-testing boxes needed. If the layout has no bidirectional text, or no text at all, the minimum level is 1.
public int MaxBidiReorderingDepth
Field Value
Top
A value that indicates the top-most point of formatted text relative to the layout box, while excluding any glyph overhang.
public float Top
Field Value
Width
A value that indicates the width of the formatted text, while ignoring trailing whitespace at the end of each line.
public float Width
Field Value
WidthIncludingTrailingWhitespace
The width of the formatted text, taking into account the trailing whitespace at the end of each line.
public float WidthIncludingTrailingWhitespace