Table of Contents

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

range TextSpan

The nonempty run range.

format RichTextCharacterFormat

The immutable character format.

Properties

Format

Gets the run's character format.

public RichTextCharacterFormat Format { get; init; }

Property Value

RichTextCharacterFormat

Range

Gets the half-open UTF-16 run range.

public TextSpan Range { get; init; }

Property Value

TextSpan

Methods

Equals(RichTextRun?)

public bool Equals(RichTextRun? other)

Parameters

other RichTextRun

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

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

Parameters

left RichTextRun
right RichTextRun

Returns

bool

operator !=(RichTextRun?, RichTextRun?)

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

Parameters

left RichTextRun
right RichTextRun

Returns

bool