Table of Contents

Struct TextPlaceholder

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents an atomic inline placeholder with caller-supplied dimensions.

public readonly struct TextPlaceholder
Inherited Members

Constructors

TextPlaceholder(float, float, TextPlaceholderAlignment, float)

Initializes a new instance of the TextPlaceholder struct.

public TextPlaceholder(float width, float height, TextPlaceholderAlignment alignment, float baselineOffset)

Parameters

width float

The placeholder width in pixel units.

height float

The placeholder height in pixel units.

alignment TextPlaceholderAlignment

The placeholder alignment against surrounding text.

baselineOffset float

The distance from the placeholder top edge to its baseline in pixel units.

Properties

Alignment

Gets the placeholder alignment against surrounding text.

public TextPlaceholderAlignment Alignment { get; }

Property Value

TextPlaceholderAlignment

BaselineOffset

Gets the distance from the placeholder top edge to its baseline in pixel units.

public float BaselineOffset { get; }

Property Value

float

Height

Gets the placeholder height in pixel units.

public float Height { get; }

Property Value

float

Width

Gets the placeholder width in pixel units.

public float Width { get; }

Property Value

float