'Declaration
Public Overloads Function GetTextOccurrenceCount( _ ByVal Page As Integer, _ ByVal Text As String, _ ByVal CaseSensitive As Boolean, _ ByVal WholeWords As Boolean, _ ByVal OrdinalComparison As Boolean _ ) As Integer
public int GetTextOccurrenceCount( int Page, string Text, bool CaseSensitive, bool WholeWords, bool OrdinalComparison )
public function GetTextOccurrenceCount( Page: Integer; Text: String; CaseSensitive: Boolean; WholeWords: Boolean; OrdinalComparison: Boolean ): Integer;
public function GetTextOccurrenceCount( Page : int, Text : String, CaseSensitive : boolean, WholeWords : boolean, OrdinalComparison : boolean ) : int;
public: int GetTextOccurrenceCount( int Page, string* Text, bool CaseSensitive, bool WholeWords, bool OrdinalComparison )
public: int GetTextOccurrenceCount( int Page, String^ Text, bool CaseSensitive, bool WholeWords, bool OrdinalComparison )
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.
- 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.
Return Value
The number of occurrences if the given text expression has been found on the current page according to the specified parameters. The GetStat method can be subsequently used to determine if this method has been successful.