ComponentOne RichTextBox for WPF
C1.WPF.RichTextBox Namespace / C1RichTextBox Class / GetTextRange Method
Offset from the start of the document.
Length of the range in characters.

In This Topic
    GetTextRange Method (C1RichTextBox)
    In This Topic
    Gets a C1.WPF.RichTextBox.Documents.C1TextRange that represents a range in the current C1RichTextBox.Document.
    Syntax
    'Declaration
     
    
    Public Function GetTextRange( _
       ByVal start As Integer, _
       ByVal length As Integer _
    ) As C1TextRange
    public C1TextRange GetTextRange( 
       int start,
       int length
    )

    Parameters

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

    Return Value

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