Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.TextMap Namespace / ITextParagraph Interface / GetTextRuns Method
The zero-based index of the fragment's starting character in this paragraph's text.
The total number of characters in the fragment.
OUT: The index of the run in Runs that contains the beginning of the specified text fragment.
OUT: The index of the text fragment's first character in the run at firstRunIndex position in Runs.
OUT: The index of the run in Runs that contains the end of the specified text fragment.
OUT: The index of the text fragment's last character in the run at lastRunIndex position in Runs.

In This Topic
    GetTextRuns Method
    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 startIndex As System.Integer, _
       ByVal length As System.Integer, _
       ByRef firstRunIndex As System.Integer, _
       ByRef indexInFirstRun As System.Integer, _
       ByRef lastRunIndex As System.Integer, _
       ByRef indexInLastRun As System.Integer _
    ) 
    void GetTextRuns( 
       System.int startIndex,
       System.int length,
       out System.int firstRunIndex,
       out System.int indexInFirstRun,
       out System.int lastRunIndex,
       out System.int indexInLastRun
    )

    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 firstRunIndex 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 lastRunIndex position in Runs.
    See Also