In This Topic
Finds the first and last
ITextRun objects in the
Runs collection of this paragraph that contain a specified fragment in this paragraph's whole text (as returned by
GetText). The fragment is specified by the starting index of its first character in the paragraph text, and the total number of characters in the fragment.
Syntax
'Declaration
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
)
Parameters
- startIndex
- The zero-based index of the fragment's starting character in this paragraph's text.
- length
- The total number of characters in the fragment.
- firstRunIndex
- OUT: The index of the run in Runs that contains the beginning of the specified text fragment.
- indexInFirstRun
- OUT: The index of the text fragment's first character in the run at position in Runs.
- lastRunIndex
- OUT: The index of the run in Runs that contains the end of the specified text fragment.
- indexInLastRun
- OUT: The index of the text fragment's last character in the run at position in Runs.
See Also