ComponentOne RichTextBox for UWP
GetTextRange Method

C1.Xaml.RichTextBox Namespace > C1RichTextBox Class : GetTextRange Method
Offset from the start of the document.
Length of the range in characters.
Gets a C1.Xaml.RichTextBox.Documents.C1TextRange that represents a range in the current Document.
Syntax
'Declaration
 
Public Function GetTextRange( _
   ByVal start As System.Integer, _
   ByVal length As System.Integer _
) As C1TextRange
public C1TextRange GetTextRange( 
   System.int start,
   System.int length
)

Parameters

start
Offset from the start of the document.
length
Length of the range in characters.

Return Value

A C1.Xaml.RichTextBox.Documents.C1TextRange that represents the requested range.
Remarks
You can use the C1.Xaml.RichTextBox.Documents.C1TextRange returned to format parts of the document without moving the Selection.
See Also

Reference

C1RichTextBox Class
C1RichTextBox Members