[]
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.
void GetTextRuns(int startIndex, int length, out int firstRunIndex, out int indexInFirstRun, out int lastRunIndex, out int indexInLastRun)
Sub GetTextRuns(startIndex As Integer, length As Integer, ByRef firstRunIndex As Integer, ByRef indexInFirstRun As Integer, ByRef lastRunIndex As Integer, ByRef indexInLastRun As Integer)
Type | Name | Description |
---|---|---|
int | startIndex | The zero-based index of the fragment's starting character in this paragraph's text. |
int | length | The total number of characters in the fragment. |
int | firstRunIndex | OUT: The index of the run in Runs that contains the beginning of the specified text fragment. |
int | indexInFirstRun | OUT: The index of the text fragment's first character in the run at |
int | lastRunIndex | OUT: The index of the run in Runs that contains the end of the specified text fragment. |
int | indexInLastRun | OUT: The index of the text fragment's last character in the run at |