Struct TextPlaceholder
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
widthfloatThe placeholder width in pixel units.
heightfloatThe placeholder height in pixel units.
alignmentTextPlaceholderAlignmentThe placeholder alignment against surrounding text.
baselineOffsetfloatThe 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
BaselineOffset
Gets the distance from the placeholder top edge to its baseline in pixel units.
public float BaselineOffset { get; }
Property Value
Height
Gets the placeholder height in pixel units.
public float Height { get; }
Property Value
Width
Gets the placeholder width in pixel units.
public float Width { get; }