SelectionRange
Represents one continuous range of selected document elements, part of DocumentSelection.
Definition
Namespace:Telerik.Windows.Documents.Selection
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SelectionRange
Inheritance: objectSelectionRange
Constructors
Initializes a new instance of the SelectionRange class.
public SelectionRange()
Properties
Gets or sets the position at which the range ends.
public DocumentPosition EndPosition { get; set; }
The end position.
Gets a value indicating whether the range is empty.
public bool IsEmpty { get; }
true if the range is empty; otherwise, false.
Gets a value indicating whether the selection range is reversed. A reversed selection range means that the start position is after the end position in the document.
public bool IsReversed { get; }
Gets a value indicating whether the selection range is valid.
public bool IsValid { get; }
Gets the type of the range.
public SelectionRangeType RangeType { get; }
The type of the range.
Gets or sets the position from which the range starts.
public DocumentPosition StartPosition { get; set; }
The start position.
Methods
Determines whether the range contains a specified DocumentPosition.
public bool ContainsPosition(DocumentPosition position)
The position to check.
Returns:true if the specified range contains the position; otherwise, false.