TextRange
Class
Represents information about a text range.
Definition
Namespace:Telerik.WinForms.Documents.TextSearch
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class TextRange
Inheritance: objectTextRange
Constructors
Initializes a new instance of the TextRange class.
C#
public TextRange(DocumentPosition startPosition, DocumentPosition endPosition)
The start position of the text.
endPositionDocumentPositionThe end position of the text.
Properties
Gets the end position of the range.
C#
public DocumentPosition EndPosition { get; }
The end position.
Gets the start position of the range.
C#
public DocumentPosition StartPosition { get; }
The start position.
Methods
Adds the current text range to the selection ranges of the document.
Sets the selection of the document to the current text range.