SelectionRange
Class
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; }
The end position.
Gets a value indicating whether the range is empty.
C#
public bool IsEmpty { get; }
true if the range is empty; otherwise, false.
C#
public bool IsReversed { get; }
Gets the type of the range.
C#
public SelectionRangeType RangeType { get; }
The type of the range.
Gets or sets the position from which the range starts.
C#
public DocumentPosition StartPosition { get; set; }
The start position.
Methods
Determines whether the range contains a specified DocumentPosition.
C#
public bool ContainsPosition(DocumentPosition position)
The position to check.
Returns:true if the specified range contains the position; otherwise, false.