Table of Contents

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

range TextSpan

The paragraph's UTF-16 range.

format RichTextParagraphFormat

The immutable paragraph format.

Properties

Format

Gets the paragraph format.

public RichTextParagraphFormat Format { get; init; }

Property Value

RichTextParagraphFormat

Range

Gets the paragraph's half-open UTF-16 range.

public TextSpan Range { get; init; }

Property Value

TextSpan

Methods

Equals(RichTextParagraph?)

public bool Equals(RichTextParagraph? other)

Parameters

other RichTextParagraph

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

public static bool operator ==(RichTextParagraph? left, RichTextParagraph? right)

Parameters

left RichTextParagraph
right RichTextParagraph

Returns

bool

operator !=(RichTextParagraph?, RichTextParagraph?)

public static bool operator !=(RichTextParagraph? left, RichTextParagraph? right)

Parameters

left RichTextParagraph
right RichTextParagraph

Returns

bool