この段落の全文に指定されたフラグメントを含む、この段落の
Runsコレクション内の最初と最後の
ITextRunオブジェクトを検索します(
GetTextによって返されます)。 フラグメントは、段落テキストの最初の文字の開始インデックスと、フラグメント内の文字の総数によって指定されます。
シンタックス
'宣言
Sub GetTextRuns( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByRef As System.Integer, _
ByRef As System.Integer, _
ByRef As System.Integer, _
ByRef As System.Integer _
)
void GetTextRuns(
System.int ,
System.int ,
out System.int ,
out System.int ,
out System.int ,
out System.int
)
パラメータ
- startIndex
- この段落のテキスト内のフラグメントの開始文字のゼロベースのインデックス。
- length
- フラグメント内の文字の合計数。
- firstRunIndex
- 出力: 指定されたテキストフラグメントの先頭を含む Runs でのテキストランのインデックス。
- indexInFirstRun
- 出力: 内の Runs 位置でのテキストランにおけるテキストフラグメントの最初の文字のインデックス。
- lastRunIndex
- 出力: 指定されたテキストフラグメントの終わりを含む、 Runs で実行されるテキストのインデックス。
- indexInLastRun
- 出力: Runs の 位置にある実行内のテキスト フラグメントの最後の文字のインデックス。
参照