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
SourceRangesIReadOnlyList<TextSpan>The visible source intervals, in source order.
BoundsRectThe fragment bounds in the exposing control's coordinates.
BaselinedoubleThe baseline's vertical coordinate.
Properties
Baseline
The baseline's vertical coordinate.
public double Baseline { get; init; }
Property Value
Bounds
The fragment bounds in the exposing control's coordinates.
public Rect Bounds { get; init; }
Property Value
SourceRanges
The visible source intervals, in source order.
public IReadOnlyList<TextSpan> SourceRanges { get; init; }
Property Value
Methods
Deconstruct(out IReadOnlyList<TextSpan>, out Rect, out double)
public void Deconstruct(out IReadOnlyList<TextSpan> SourceRanges, out Rect Bounds, out double Baseline)
Parameters
SourceRangesIReadOnlyList<TextSpan>BoundsRectBaselinedouble
Equals(RichTextVisualLine?)
public bool Equals(RichTextVisualLine? other)
Parameters
otherRichTextVisualLine
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 ==(RichTextVisualLine?, RichTextVisualLine?)
public static bool operator ==(RichTextVisualLine? left, RichTextVisualLine? right)
Parameters
leftRichTextVisualLinerightRichTextVisualLine
Returns
operator !=(RichTextVisualLine?, RichTextVisualLine?)
public static bool operator !=(RichTextVisualLine? left, RichTextVisualLine? right)
Parameters
leftRichTextVisualLinerightRichTextVisualLine