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
RichTextLink(TextSpan, string, string?)
Initializes a hyperlink.
public RichTextLink(TextSpan range, string target, string? toolTip = null)
Parameters
rangeTextSpanThe nonempty display-text range.
targetstringThe application-defined target.
toolTipstringOptional tooltip text.
Properties
Range
Gets the display-text range.
public TextSpan Range { get; init; }
Property Value
Target
Gets the application-defined target.
public string Target { get; init; }
Property Value
ToolTip
Gets optional tooltip text.
public string? ToolTip { get; init; }
Property Value
Methods
Equals(RichTextLink?)
public bool Equals(RichTextLink? other)
Parameters
otherRichTextLink
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 ==(RichTextLink?, RichTextLink?)
public static bool operator ==(RichTextLink? left, RichTextLink? right)
Parameters
leftRichTextLinkrightRichTextLink
Returns
operator !=(RichTextLink?, RichTextLink?)
public static bool operator !=(RichTextLink? left, RichTextLink? right)
Parameters
leftRichTextLinkrightRichTextLink