SearchFirst

Top  Previous  Next

[This method is new in  version 2.04 of Gnostice PDFtoolkit ActiveX/. NET ProPlus Edition]

 

This function searches for  the first instance of the given text in the whole document. If no match is found, the return value is 0. If a match is found, the return value is the index of the beginning of the searched text in the text property of the gtPDFTextElementX class object which is passed as a parameter.

 

Syntax

 

[VC++]

long SearchFirst(LPCTSTR SearchText, LPDISPATCH* TextElement, BOOL CaseSensitive,

BOOL WholeWord);

 

[CS]

public abstract new Int32 SearchFirst ( String SearchText , gtPDFTextElementX TextElement , Boolean CaseSensitive , Boolean WholeWord );

 

[VB]

Function SearchFirst(SearchText As String, TextElement As gtPDFTextElementX, CaseSensitive As Boolean, WholeWord As Boolean) As Long

 

 

Parameters

       

       SearchText

            Specifies the string to be searched.

       

       TextElement

           Specifies the gtPDFTextElementX class object, which contains the searched text element.

       

       CaseSensitive

           If set, the search is case sensitive.

 

       WholeWord

            If set, searches for the whole word.

 

       

Refer example  'Tutorial - Search Text'