Click or drag to resize
CanvasLineMetrics Structure
Describes a line of formatted text within a text layout.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public struct CanvasLineMetrics

The CanvasLineMetrics type exposes the following members.

Fields
  NameDescription
Public fieldBaseline
The distance, in DIPs, from the top of the text line to its baseline.
Public fieldCharacterCount
The number of characters in the text line.
Public fieldHeight
The height of the text line, in DIPs.
Public fieldIsTrimmed
Indicates whether the line was trimmed.
Public fieldLeadingWhitespaceAfter
Size of the white space, in DIPs, after the content of the line.
Public fieldLeadingWhitespaceBefore
Size of the white space, in DIPs, before the content of the line.
Public fieldTerminalNewlineCount
The number of characters in the newline sequence at the end of the text line.
Public fieldTrailingWhitespaceCount
The number of whitespace characters at the end of the text line.
Top
See Also