Class TextRange
Represents information about a text range.
Inheritance
Namespace: Telerik.Windows.Documents.TextSearch
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class TextRange : Object
Constructors
TextRange(DocumentPosition, DocumentPosition)
Initializes a new instance of the Text
Declaration
public TextRange(DocumentPosition startPosition, DocumentPosition endPosition)
Parameters
Document The start position of the text. |
Document The end position of the text. |
Properties
EndPosition
Gets the end position of the range.
Declaration
public DocumentPosition EndPosition { get; }
Property Value
Document The end position. |
StartPosition
Gets the start position of the range.
Declaration
public DocumentPosition StartPosition { get; }
Property Value
Document The start position. |
Methods
AddToSelection(RadDocument)
Adds the current text range to the selection ranges of the document.
Declaration
public void AddToSelection(RadDocument radDocument)
Parameters
Rad
|
SetSelection(RadDocument)
Sets the selection of the document to the current text range.
Declaration
public void SetSelection(RadDocument radDocument)
Parameters
Rad
|