[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.ITextMap.GetFragment

GetFragment Method

GetFragment(MapPos, MapPos, out TextMapFragment, out string)

Gets a TextMapFragment that represents the text within a specified range (from startPos to endPos).

Declaration
void GetFragment(MapPos startPos, MapPos endPos, out TextMapFragment fragment, out string text)
Sub GetFragment(startPos As MapPos, endPos As MapPos, ByRef fragment As TextMapFragment, ByRef text As String)
Parameters
Type Name Description
MapPos startPos

The MapPos specifying the start of the range.

MapPos endPos

The MapPos specifying the end of the range.

TextMapFragment fragment

OUT: a TextMapFragment representing the text in the range.

string text

OUT: the fragment's text.

GetFragment(out TextMapFragment, out string)

Gets a TextMapFragment that represents the text of the whole page.

Declaration
void GetFragment(out TextMapFragment fragment, out string text)
Sub GetFragment(ByRef fragment As TextMapFragment, ByRef text As String)
Parameters
Type Name Description
TextMapFragment fragment

OUT: a TextMapFragment representing the text on the page.

string text

OUT: the fragment's text.