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
idRichTextFieldIdA positive document-local identity, or the default value when a snapshot should allocate one.
rangeTextSpanThe visible result range.
instructionstringThe nonempty RTF field instruction.
RichTextField(TextSpan, string)
Initializes a field.
public RichTextField(TextSpan range, string instruction)
Parameters
Properties
Id
Gets the stable document-local field identity.
public RichTextFieldId Id { get; init; }
Property Value
Instruction
Gets the RTF field instruction.
public string Instruction { get; init; }
Property Value
Range
Gets the visible result range.
public TextSpan Range { get; init; }
Property Value
Methods
Equals(RichTextField?)
public bool Equals(RichTextField? other)
Parameters
otherRichTextField
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 ==(RichTextField?, RichTextField?)
public static bool operator ==(RichTextField? left, RichTextField? right)
Parameters
leftRichTextFieldrightRichTextField
Returns
operator !=(RichTextField?, RichTextField?)
public static bool operator !=(RichTextField? left, RichTextField? right)
Parameters
leftRichTextFieldrightRichTextField