Table of Contents

Struct RichTextCompositionState

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

The current native marked-text state. An active composition need not have a known source range.

public readonly struct RichTextCompositionState : IEquatable<RichTextCompositionState>
Implements
Inherited Members

Constructors

RichTextCompositionState(bool, TextSpan?)

The current native marked-text state. An active composition need not have a known source range.

public RichTextCompositionState(bool IsActive, TextSpan? Range)

Parameters

IsActive bool

Whether the native input method owns a marked-text session.

Range TextSpan?

The logical marked range when known accurately.

Properties

IsActive

Whether the native input method owns a marked-text session.

public bool IsActive { get; init; }

Property Value

bool

Range

The logical marked range when known accurately.

public TextSpan? Range { get; init; }

Property Value

TextSpan?

Methods

Deconstruct(out bool, out TextSpan?)

public void Deconstruct(out bool IsActive, out TextSpan? Range)

Parameters

IsActive bool
Range TextSpan?

Equals(RichTextCompositionState)

public bool Equals(RichTextCompositionState other)

Parameters

other RichTextCompositionState

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

public static bool operator ==(RichTextCompositionState left, RichTextCompositionState right)

Parameters

left RichTextCompositionState
right RichTextCompositionState

Returns

bool

operator !=(RichTextCompositionState, RichTextCompositionState)

public static bool operator !=(RichTextCompositionState left, RichTextCompositionState right)

Parameters

left RichTextCompositionState
right RichTextCompositionState

Returns

bool