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