Table of Contents

Struct LineMetrics

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.dll

Contains information about a formatted line of text.

public readonly struct LineMetrics : IEquatable<LineMetrics>
Implements
Inherited Members

Properties

Baseline

The distance from the top of the text line to its baseline.

Height

The height of the text line.

IsTrimmed

The line is trimmed.

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.

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.

Length

The number of text positions in the text line. This includes any trailing whitespace and newline characters.

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.

TrailingWhitespaceLength

The number of whitespace positions at the end of the text line. Newline sequences are considered whitespace.

Methods

Equals(LineMetrics)
Equals(in LineMetrics)
Equals(object?)
GetHashCode()

Operators

operator ==(in LineMetrics, in LineMetrics)
operator !=(in LineMetrics, in LineMetrics)