Table of Contents

Class RichTextField

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Associates a visible result range with an RTF field instruction.

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

Constructors

RichTextField(RichTextFieldId, TextSpan, string)

Initializes an identified field.

public RichTextField(RichTextFieldId id, TextSpan range, string instruction)

Parameters

id RichTextFieldId

A positive document-local identity, or the default value when a snapshot should allocate one.

range TextSpan

The visible result range.

instruction string

The nonempty RTF field instruction.

RichTextField(TextSpan, string)

Initializes a field.

public RichTextField(TextSpan range, string instruction)

Parameters

range TextSpan

The visible result range.

instruction string

The nonempty RTF field instruction.

Properties

Id

Gets the stable document-local field identity.

public RichTextFieldId Id { get; init; }

Property Value

RichTextFieldId

Instruction

Gets the RTF field instruction.

public string Instruction { get; init; }

Property Value

string

Range

Gets the visible result range.

public TextSpan Range { get; init; }

Property Value

TextSpan

Methods

Equals(RichTextField?)

public bool Equals(RichTextField? other)

Parameters

other RichTextField

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

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

Parameters

left RichTextField
right RichTextField

Returns

bool

operator !=(RichTextField?, RichTextField?)

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

Parameters

left RichTextField
right RichTextField

Returns

bool