Table of Contents

Class RichTextWidget

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

A data-backed, source-anchored widget. Its identity is stable within one widget source.

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

Constructors

RichTextWidget(string, int, Size, object?, RichTextAdornmentOptions?, string?, long)

A data-backed, source-anchored widget. Its identity is stable within one widget source.

public RichTextWidget(string Id, int Position, Size EstimatedSize, object? Data = null, RichTextAdornmentOptions? Options = null, string? AccessibleDescription = null, long ContentVersion = 0)

Parameters

Id string

The source-owned stable identity.

Position int

The captured UTF-16 source anchor.

EstimatedSize Size

A finite, nonnegative layout estimate in device-independent units.

Data object

Application data passed to creation and recycling callbacks.

Options RichTextAdornmentOptions

Placement and insertion affinity.

AccessibleDescription string

An optional native accessibility description for the created view.

ContentVersion long

An application generation that forces recreation when data changes in place.

Properties

AccessibleDescription

An optional native accessibility description for the created view.

public string? AccessibleDescription { get; init; }

Property Value

string

ContentVersion

An application generation that forces recreation when data changes in place.

public long ContentVersion { get; init; }

Property Value

long

Data

Application data passed to creation and recycling callbacks.

public object? Data { get; init; }

Property Value

object

EstimatedSize

A finite, nonnegative layout estimate in device-independent units.

public Size EstimatedSize { get; init; }

Property Value

Size

Id

The source-owned stable identity.

public string Id { get; init; }

Property Value

string

Options

Placement and insertion affinity.

public RichTextAdornmentOptions? Options { get; init; }

Property Value

RichTextAdornmentOptions

Position

The captured UTF-16 source anchor.

public int Position { get; init; }

Property Value

int

Methods

Deconstruct(out string, out int, out Size, out object?, out RichTextAdornmentOptions?, out string?, out long)

public void Deconstruct(out string Id, out int Position, out Size EstimatedSize, out object? Data, out RichTextAdornmentOptions? Options, out string? AccessibleDescription, out long ContentVersion)

Parameters

Id string
Position int
EstimatedSize Size
Data object
Options RichTextAdornmentOptions
AccessibleDescription string
ContentVersion long

Equals(RichTextWidget?)

public bool Equals(RichTextWidget? other)

Parameters

other RichTextWidget

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 ==(RichTextWidget?, RichTextWidget?)

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

Parameters

left RichTextWidget
right RichTextWidget

Returns

bool

operator !=(RichTextWidget?, RichTextWidget?)

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

Parameters

left RichTextWidget
right RichTextWidget

Returns

bool