Table of Contents

Struct TextMeasurement

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.Core.dll
public readonly struct TextMeasurement : IEquatable<TextMeasurement>
Implements
Inherited Members

Properties

BlackBoxBounds

The black box rectangle for the text block. This is the rectangle that is affected by rendering, and includes the overhang metrics.

Height

The layout height of the text block, relative from an alignment point of (0,0).

OverhangBottom

The amount of overhang from the bottom edge of the alignment rectangle.

OverhangLeft

The amount of overhang from the left edge of the alignment rectangle.

OverhangRight

The amount of overhang from the right edge of the alignment rectangle.

OverhangTop

The amount of overhang from the top edge of the alignment rectangle.

SafeClipBounds

Gets a safe clipping rectangle for this block of text useful for rendering purposes.

Size

The layout size of the text block, relative from an alignment point of (0,0).

Width

The layout width of the text block, relative from an alignment point of (0,0).

Methods

Equals(TextMeasurement)
Equals(in TextMeasurement)
Equals(object?)
GetHashCode()

Operators

operator ==(in TextMeasurement, in TextMeasurement)
operator !=(in TextMeasurement, in TextMeasurement)