Class TextRange
Represents information about a text range.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.TextSearch
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class TextRange
Constructors
TextRange(DocumentPosition, DocumentPosition)
Initializes a new instance of the TextRange class.
Declaration
public TextRange(DocumentPosition startPosition, DocumentPosition endPosition)
Parameters
DocumentPosition
startPosition
The start position of the text. |
DocumentPosition
endPosition
The end position of the text. |
Properties
EndPosition
Gets the end position of the range.
Declaration
public DocumentPosition EndPosition { get; }
Property Value
DocumentPosition
The end position. |
StartPosition
Gets the start position of the range.
Declaration
public DocumentPosition StartPosition { get; }
Property Value
DocumentPosition
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
RadDocument
radDocument
|
SetSelection(RadDocument)
Sets the selection of the document to the current text range.
Declaration
public void SetSelection(RadDocument radDocument)
Parameters
RadDocument
radDocument
|