Table of Contents

Class RichTextAdornmentOptions

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Controls the layout and insertion affinity of a source-anchored view.

public sealed record RichTextAdornmentOptions : IEquatable<RichTextAdornmentOptions>
Inheritance
RichTextAdornmentOptions
Implements
Inherited Members

Constructors

RichTextAdornmentOptions()

public RichTextAdornmentOptions()

Properties

Affinity

Gets which side of an insertion retains the anchor.

public PositionAffinity Affinity { get; init; }

Property Value

PositionAffinity

Baseline

Gets the inline baseline measured from the content's top; null aligns its bottom.

public double? Baseline { get; init; }

Property Value

double?

Offset

Gets an overlay or margin displacement in device-independent units.

public Point Offset { get; init; }

Property Value

Point

Placement

Gets where the content participates in layout.

public RichTextAdornmentPlacement Placement { get; init; }

Property Value

RichTextAdornmentPlacement

Methods

Equals(RichTextAdornmentOptions?)

public bool Equals(RichTextAdornmentOptions? other)

Parameters

other RichTextAdornmentOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RichTextAdornmentOptions?, RichTextAdornmentOptions?)

public static bool operator ==(RichTextAdornmentOptions? left, RichTextAdornmentOptions? right)

Parameters

left RichTextAdornmentOptions
right RichTextAdornmentOptions

Returns

bool

operator !=(RichTextAdornmentOptions?, RichTextAdornmentOptions?)

public static bool operator !=(RichTextAdornmentOptions? left, RichTextAdornmentOptions? right)

Parameters

left RichTextAdornmentOptions
right RichTextAdornmentOptions

Returns

bool