'Declaration
Public Overloads Function SearchText( _ ByVal Page As Integer, _ ByVal Text As String, _ ByVal Occurrence As Integer, _ ByVal CaseSensitive As Boolean, _ ByVal WholeWords As Boolean, _ ByVal OrdinalComparison 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, bool WholeWords, bool OrdinalComparison, ref float Left, ref float Top, ref float Width, ref float Height )
public function SearchText( Page: Integer; Text: String; Occurrence: Integer; CaseSensitive: Boolean; WholeWords: Boolean; OrdinalComparison: 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, WholeWords : boolean, OrdinalComparison : boolean, Left : float, Top : float, Width : float, Height : float ) : boolean;
public: bool SearchText( int Page, string* Text, int Occurrence, bool CaseSensitive, bool WholeWords, bool OrdinalComparison, ref float Left, ref float Top, ref float Width, ref float Height )
public: bool SearchText( int Page, String^ Text, int Occurrence, bool CaseSensitive, bool WholeWords, bool OrdinalComparison, 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.
- WholeWords
- Set this parameter to true if you want to search for the whole words only, otherwise set it to false.
- OrdinalComparison
- Set this parameter to true if you want to search applying the ordinal (binary) sort rules, otherwise set it to false. An ordinal comparison compares strictly on the numeric character values, that means it does not respect accents.
- 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.