[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1RichTextBox.GetTextRange

GetTextRange Method

GetTextRange(int, int)

Gets a C1TextRange that represents a range in the current Document.

Declaration
public C1TextRange GetTextRange(int start, int length)
Parameters
Type Name Description
int start

Offset from the start of the document.

int length

Length of the range in characters.

Returns
Type Description
C1TextRange

A C1TextRange that represents the requested range.

Remarks

You can use the C1TextRange returned to format parts of the document without moving the Selection.