Struct
RichTextSelectionRange

Represents a range of selected text RadRichTextEditor.

Definition

Namespace:Telerik.Maui.Controls.RichTextEditor

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public struct RichTextSelectionRange : IEquatable<RichTextSelectionRange>

Implements: IEquatable<RichTextSelectionRange>

Inherited Members ValueType.ToString()

Constructors

RichTextSelectionRange(int, int)

Initializes a new instance of the RichTextSelectionRange struct.

Declaration

cs-api-definition
public RichTextSelectionRange(int start, int end)

Parameters

start

int

The start character position of the selection range.

end

int

The end character position of the selection range.

Properties

End

Gets the end character position of the selection range.

Declaration

cs-api-definition
public readonly int End { get; }

Property Value

int

Start

Gets the start character position of the selection range.

Declaration

cs-api-definition
public readonly int Start { get; }

Property Value

int

Methods

Equals(RichTextSelectionRange)

Compares the specified selection range with the current one for equality.

Declaration

cs-api-definition
public bool Equals(RichTextSelectionRange selectionRange)

Parameters

selectionRange

RichTextSelectionRange

Specifies the selection range to compare.

Returns

bool

True - if the two ranges are not equal, False - otherwise.

Implements IEquatable<RichTextSelectionRange>.Equals(RichTextSelectionRange)

Equals(object)

Compares the specified object with the current one for equality.

Declaration

cs-api-definition
public override bool Equals(object otherObject)

Parameters

otherObject

object

Specifies the object to compare.

Returns

bool

True - if the two objects are not equal, False - otherwise.

Overrides ValueType.Equals(object)

GetHashCode()

Computes the hash code of the current selection range.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

The computed hash code of the current selection range.

Overrides ValueType.GetHashCode()

Operators

operator !=(RichTextSelectionRange, RichTextSelectionRange)

Compares the two specified selection ranges for inequality.

Declaration

cs-api-definition
public static bool operator !=(RichTextSelectionRange firstRange, RichTextSelectionRange secondRange)

Parameters

firstRange

RichTextSelectionRange

Specifies the first selection range to compare.

secondRange

RichTextSelectionRange

Specifies the second selection range to compare.

Returns

bool

True - if the two ranges are not equal, False - otherwise.

operator ==(RichTextSelectionRange, RichTextSelectionRange)

Compares the two specified selection ranges for equality.

Declaration

cs-api-definition
public static bool operator ==(RichTextSelectionRange firstRange, RichTextSelectionRange secondRange)

Parameters

firstRange

RichTextSelectionRange

Specifies the first range to compare.

secondRange

RichTextSelectionRange

Specifies the second range to compare.

Returns

bool

True - if the two ranges are equal, False - otherwise.