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