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

Namespace:  C1.Silverlight.RichTextBox
Assembly:  C1.Silverlight.RichTextBox (in C1.Silverlight.RichTextBox.dll)

Syntax

C#
public C1TextRange GetTextRange(
	int start,
	int length
)
Visual Basic
Public Function GetTextRange ( _
	start As Integer, _
	length As Integer _
) As C1TextRange

Parameters

start
Type: System..::..Int32
Offset from the start of the document.
length
Type: System..::..Int32
Length of the range in characters.

Return Value

A C1TextRange that represents the requested range.

Remarks

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

See Also