You are here: GdPicture.NET > Documentation > Classes > GdViewer Class > GdViewer Methods > PDF Features > PdfSearchText > PdfSearchText Method (Integer, String, Integer, Boolean, Single, Single, Single, Single)
logo.gif
ContentsIndexHome
PreviousUpNext
GdViewer.PdfSearchText Method (Integer, String, Integer, Boolean, Single, Single, Single, Single)

Searches a specific page of the displayed PDF for an occurrence of a given text string and returns its bounding box.

C#
public Boolean PdfSearchText(
    int Page, 
    String Text, 
    int Occurrence, 
    Boolean CaseSensitive, 
    ref Single Left, 
    ref Single Top, 
    ref Single Width, 
    ref Single Height
);
Visual Basic
Public Function PdfSearchText(
    ByVal Page As Integer, 
    ByVal Text As String, 
    ByVal Occurrence As Integer, 
    ByVal CaseSensitive As Boolean, 
    ByRef Left As Single, 
    ByRef Top As Single, 
    ByRef Width As Single, 
    ByRef Height As Single
) As Boolean
Parameters
Parameters 
Description 
Page 
The page to search.  
Text 
The text to search for.  
Occurrence 
The occurrence of the text to search for. 1 to search for the first occurrence, 2 for the second... 0 are not accepted.
 
CaseSensitive 
True to apply case-sensitive search, else False.  
Left 
If the occurrence is found, returns the left position in inches of the area covering the text.  
Top 
If the occurrence is found, returns the top position in inches of the area covering the text.  
Width 
If the occurrence is found, returns the width in inches of the area covering the text.  
Height 
If the occurrence is found, returns the height in inches of the area covering the text.  
Returns

True if the string has been found, else False.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.