Table of Contents

Class RichTextLink

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Associates a document range with a hyperlink.

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

Constructors

Initializes a hyperlink.

public RichTextLink(TextSpan range, string target, string? toolTip = null)

Parameters

range TextSpan

The nonempty display-text range.

target string

The application-defined target.

toolTip string

Optional tooltip text.

Properties

Gets the display-text range.

public TextSpan Range { get; init; }

Property Value

TextSpan

Gets the application-defined target.

public string Target { get; init; }

Property Value

string

Gets optional tooltip text.

public string? ToolTip { get; init; }

Property Value

string

Methods

public bool Equals(RichTextLink? other)

Parameters

other RichTextLink

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object

Returns

bool
public override int GetHashCode()

Returns

int
public override string ToString()

Returns

string

Operators

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

Parameters

left RichTextLink
right RichTextLink

Returns

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

Parameters

left RichTextLink
right RichTextLink

Returns

bool