'Declaration
Public Overloads Function SearchText( _ 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
public bool SearchText( int Page, string Text, int Occurrence, bool CaseSensitive, ref float Left, ref float Top, ref float Width, ref float Height )
public function SearchText( Page: Integer; Text: String; Occurrence: Integer; CaseSensitive: Boolean; var Left: Single; var Top: Single; var Width: Single; var Height: Single ): Boolean;
public function SearchText( Page : int, Text : String, Occurrence : int, CaseSensitive : boolean, Left : float, Top : float, Width : float, Height : float ) : boolean;
public: bool SearchText( int Page, string* Text, int Occurrence, bool CaseSensitive, ref float Left, ref float Top, ref float Width, ref float Height )
public: bool SearchText( int Page, String^ Text, int Occurrence, bool CaseSensitive, float% Left, float% Top, float% Width, float% 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 pointof 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.