ClassSelectionRange
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
SelectionRange()
Initializes a new instance of the SelectionRange class.
Declaration
public SelectionRange()
Properties
EndPosition
Gets or sets the position at which the range ends.
Declaration
public DocumentPosition EndPosition { get; set; }
Property Value
The end position.
IsEmpty
Gets a value indicating whether the range is empty.
Declaration
public bool IsEmpty { get; }
Property Value
true if the range is empty; otherwise, false.
IsReversed
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.
IsValid
Gets a value indicating whether the selection range is valid.
RangeType
Gets the type of the range.
Declaration
public SelectionRangeType RangeType { get; }
Property Value
The type of the range.
StartPosition
Gets or sets the position from which the range starts.
Declaration
public DocumentPosition StartPosition { get; set; }
Property Value
The start position.
Methods
ContainsPosition(DocumentPosition)
Determines whether the range contains a specified DocumentPosition.
Declaration
public bool ContainsPosition(DocumentPosition position)
Parameters
position
The position to check.
Returns
true if the specified range contains the position; otherwise, false.