RichTextBox for WinRT
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
'Usage
 
Dim instance As C1RichTextBox
Dim start As System.Integer
Dim length As System.Integer
Dim value As C1TextRange
 
value = instance.GetTextRange(start, length)
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1RichTextBox Class
C1RichTextBox Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback