RichTextBox for UWP/WinRT
GetTextRange メソッド

ドキュメントの先頭からのオフセット。
範囲の長さ(文字数)。
現在の Document 内の範囲を表す C1.Xaml.RichTextBox.Documents.C1TextRange を取得します。
構文
'宣言
 
Public Function GetTextRange( _
   ByVal start As System.Integer, _
   ByVal length As System.Integer _
) As C1TextRange
public C1TextRange GetTextRange( 
   System.int start,
   System.int length
)

パラメータ

start
ドキュメントの先頭からのオフセット。
length
範囲の長さ(文字数)。

戻り値の型

要求された範囲を表す C1.Xaml.RichTextBox.Documents.C1TextRange
解説
返された C1.Xaml.RichTextBox.Documents.C1TextRange を使用すると、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

参照

関連項目

C1RichTextBox クラス
C1RichTextBox メンバ

Send Feedback