'Declaration
Public Overloads Function SearchText( _ ByVal Page As Integer, _ ByVal Text As String, _ ByVal Occurrence As Integer, _ ByVal CaseSensitive As Boolean, _ ByRef Left As Double, _ ByRef Top As Double, _ ByRef Width As Double, _ ByRef Height As Double _ ) As Boolean
public bool SearchText( int Page, string Text, int Occurrence, bool CaseSensitive, ref double Left, ref double Top, ref double Width, ref double Height )
public function SearchText( Page: Integer; Text: String; Occurrence: Integer; CaseSensitive: Boolean; var Left: Double; var Top: Double; var Width: Double; var Height: Double ): Boolean;
public function SearchText( Page : int, Text : String, Occurrence : int, CaseSensitive : boolean, Left : double, Top : double, Width : double, Height : double ) : boolean;
public: bool SearchText( int Page, string* Text, int Occurrence, bool CaseSensitive, ref double Left, ref double Top, ref double Width, ref double Height )
public: bool SearchText( int Page, String^ Text, int Occurrence, bool CaseSensitive, double% Left, double% Top, double% Width, double% Height )
Parameters
- Page
- The number of the page to search for text. It must be a value from 1 to the value of the PageCount property.
- Text
- The text expression to search for.
- Occurrence
- The occurrence of the searched expression on the required page. Set the occurrence to 1 if you are searching for the first occurrence, set it to 2 for the second etc.
The value of 0 is not accepted, it will always be converted to 1. Please note that the occurrence is always related to the specified page.
- CaseSensitive
- Set this parameter to true if you want to apply case-sensitive search, otherwise set it to false.
- Left
- Output parameter. If the searched expression has been found, this is the position of the horizontal (X) coordinate of the top left point of its surrounding bounding box, in inches.
- Top
- Output parameter. If the searched expression has been found, this is the position of the vertical (Y) coordinate of the top left point of its surrounding bounding box, in inches.
- Width
- Output parameter. If the searched expression has been found, this is the width of the bounding box surrounding the expression, in inches.
- Height
- Output parameter. If the searched expression has been found, this is the height of the bounding box surrounding the expression, in inches.