Class RichTextRun
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Associates a document range with one character format.
public sealed record RichTextRun : IEquatable<RichTextRun>
- Inheritance
-
RichTextRun
- Implements
- Inherited Members
Constructors
RichTextRun(TextSpan, RichTextCharacterFormat)
Initializes a character-format run.
public RichTextRun(TextSpan range, RichTextCharacterFormat format)
Parameters
rangeTextSpanThe nonempty run range.
formatRichTextCharacterFormatThe immutable character format.
Properties
Format
Gets the run's character format.
public RichTextCharacterFormat Format { get; init; }
Property Value
Range
Gets the half-open UTF-16 run range.
public TextSpan Range { get; init; }
Property Value
Methods
Equals(RichTextRun?)
public bool Equals(RichTextRun? other)
Parameters
otherRichTextRun
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 ==(RichTextRun?, RichTextRun?)
public static bool operator ==(RichTextRun? left, RichTextRun? right)
Parameters
leftRichTextRunrightRichTextRun
Returns
operator !=(RichTextRun?, RichTextRun?)
public static bool operator !=(RichTextRun? left, RichTextRun? right)
Parameters
leftRichTextRunrightRichTextRun