New to Telerik UI for WinFormsStart a free 30-day trial

Represents one continuous range of selected document elements, part of DocumentSelection.

Definition

Namespace:Telerik.WinForms.Documents.Selection

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class SelectionRange

Inheritance: objectSelectionRange

Constructors

Initializes a new instance of the SelectionRange class.

C#
public SelectionRange()

Properties

Gets or sets the position at which the range ends.

C#
public DocumentPosition EndPosition { get; set; }
Property Value:

The end position.

Gets a value indicating whether the range is empty.

C#
public bool IsEmpty { get; }
Property Value:

true if the range is empty; otherwise, false.

C#
public bool IsReversed { get; }
C#
public bool IsValid { get; }

Gets the type of the range.

C#
public SelectionRangeType RangeType { get; }
Property Value:

The type of the range.

Gets or sets the position from which the range starts.

C#
public DocumentPosition StartPosition { get; set; }
Property Value:

The start position.

Methods

Determines whether the range contains a specified DocumentPosition.

C#
public bool ContainsPosition(DocumentPosition position)
Parameters:positionDocumentPosition

The position to check.

Returns:

bool

true if the specified range contains the position; otherwise, false.