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
IsActiveboolWhether the native input method owns a marked-text session.
RangeTextSpan?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
Range
The logical marked range when known accurately.
public TextSpan? Range { get; init; }
Property Value
Methods
Deconstruct(out bool, out TextSpan?)
public void Deconstruct(out bool IsActive, out TextSpan? Range)
Parameters
Equals(RichTextCompositionState)
public bool Equals(RichTextCompositionState other)
Parameters
otherRichTextCompositionState
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RichTextCompositionState, RichTextCompositionState)
public static bool operator ==(RichTextCompositionState left, RichTextCompositionState right)
Parameters
leftRichTextCompositionStaterightRichTextCompositionState
Returns
operator !=(RichTextCompositionState, RichTextCompositionState)
public static bool operator !=(RichTextCompositionState left, RichTextCompositionState right)
Parameters
leftRichTextCompositionStaterightRichTextCompositionState