'Declaration
Public Overloads Function SearchText( _ ByVal Text As String, _ ByVal Occurrence As Integer, _ ByVal CaseSensitive As Boolean, _ ByVal WholeWords As Boolean, _ ByVal AnyWord 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( string Text, int Occurrence, bool CaseSensitive, bool WholeWords, bool AnyWord, bool OrdinalComparison, ref float Left, ref float Top, ref float Width, ref float Height )
public function SearchText( Text: String; Occurrence: Integer; CaseSensitive: Boolean; WholeWords: Boolean; AnyWord: Boolean; OrdinalComparison: Boolean; var Left: Single; var Top: Single; var Width: Single; var Height: Single ): Boolean;
public function SearchText( Text : String, Occurrence : int, CaseSensitive : boolean, WholeWords : boolean, AnyWord : boolean, OrdinalComparison : boolean, Left : float, Top : float, Width : float, Height : float ) : boolean;
public: bool SearchText( string* Text, int Occurrence, bool CaseSensitive, bool WholeWords, bool AnyWord, bool OrdinalComparison, ref float Left, ref float Top, ref float Width, ref float Height )
public: bool SearchText( String^ Text, int Occurrence, bool CaseSensitive, bool WholeWords, bool AnyWord, bool OrdinalComparison, float% Left, float% Top, float% Width, float% Height )
Parameters
- Text
- The text expression to search for.
- Occurrence
- The occurrence (rank) of the searched expression on the current page. Set the occurrence to 1 if you are searching for the first occurrence, set it to 2 for the second etc.
Rank equal to 0 is not accepted, it will always be converted to 1. Please note that the occurrence (rank) is always related to the current 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.
- AnyWord
- Set this parameter to true if you want to search for any word in the search expression, 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 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 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.