Table of Contents

Class RichTextVisualLine

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

A visible native line fragment, excluding hidden source and display reservations.

public sealed record RichTextVisualLine : IEquatable<RichTextVisualLine>
Inheritance
RichTextVisualLine
Implements
Inherited Members

Constructors

RichTextVisualLine(IReadOnlyList<TextSpan>, Rect, double)

A visible native line fragment, excluding hidden source and display reservations.

public RichTextVisualLine(IReadOnlyList<TextSpan> SourceRanges, Rect Bounds, double Baseline)

Parameters

SourceRanges IReadOnlyList<TextSpan>

The visible source intervals, in source order.

Bounds Rect

The fragment bounds in the exposing control's coordinates.

Baseline double

The baseline's vertical coordinate.

Properties

Baseline

The baseline's vertical coordinate.

public double Baseline { get; init; }

Property Value

double

Bounds

The fragment bounds in the exposing control's coordinates.

public Rect Bounds { get; init; }

Property Value

Rect

SourceRanges

The visible source intervals, in source order.

public IReadOnlyList<TextSpan> SourceRanges { get; init; }

Property Value

IReadOnlyList<TextSpan>

Methods

Deconstruct(out IReadOnlyList<TextSpan>, out Rect, out double)

public void Deconstruct(out IReadOnlyList<TextSpan> SourceRanges, out Rect Bounds, out double Baseline)

Parameters

SourceRanges IReadOnlyList<TextSpan>
Bounds Rect
Baseline double

Equals(RichTextVisualLine?)

public bool Equals(RichTextVisualLine? other)

Parameters

other RichTextVisualLine

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

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

Parameters

left RichTextVisualLine
right RichTextVisualLine

Returns

bool

operator !=(RichTextVisualLine?, RichTextVisualLine?)

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

Parameters

left RichTextVisualLine
right RichTextVisualLine

Returns

bool