New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a range of selected text RadRichTextEditor.

Definition

Namespace:Telerik.Maui.Controls.RichTextEditor

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public struct RichTextSelectionRange : IEquatable<RichTextSelectionRange>

Implements: IEquatable<RichTextSelectionRange>

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RichTextSelectionRange struct.

C#
public RichTextSelectionRange(int start, int end)
Parameters:startint

The start character position of the selection range.

endint

The end character position of the selection range.

Properties

Gets the end character position of the selection range.

C#
public readonly int End { get; }

Gets the start character position of the selection range.

C#
public readonly int Start { get; }

Methods

Compares the specified object with the current one for equality.

C#
public override bool Equals(object otherObject)
Parameters:otherObjectobject

Specifies the object to compare.

Returns:

bool

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

Overrides: ValueType.Equals(object)

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

C#
public bool Equals(RichTextSelectionRange selectionRange)
Parameters:selectionRangeRichTextSelectionRange

Specifies the selection range to compare.

Returns:

bool

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

Implements: IEquatable<RichTextSelectionRange>.Equals(RichTextSelectionRange)

Computes the hash code of the current selection range.

C#
public override int GetHashCode()
Returns:

int

The computed hash code of the current selection range.

Overrides: ValueType.GetHashCode()

Operators

Compares the two specified selection ranges for inequality.

C#
public static bool operator !=(RichTextSelectionRange firstRange, RichTextSelectionRange secondRange)
Parameters:firstRangeRichTextSelectionRange

Specifies the first selection range to compare.

secondRangeRichTextSelectionRange

Specifies the second selection range to compare.

Returns:

bool

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

Compares the two specified selection ranges for equality.

C#
public static bool operator ==(RichTextSelectionRange firstRange, RichTextSelectionRange secondRange)
Parameters:firstRangeRichTextSelectionRange

Specifies the first range to compare.

secondRangeRichTextSelectionRange

Specifies the second range to compare.

Returns:

bool

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