PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Finds a text in the document displayed by a PDF Reader control and highlights the occurrences of this text in the control.
Example
// Highlights all "WINDEV" occurrences found in a PDF Reader control in yellow
PDFReaderHighlight(PDF_READER_PDF, "WINDEV", LightYellow, WholeWord)
// Highlights all "WEBDEV" occurrences in blue
PDFReaderHighlight(PDF_READER_PDF, "WEBDEV", LightBlue, WholeWord)
// Highlights all "WINDEV Mobile" occurrences in orange
PDFReaderHighlight(PDF_READER_PDF, "WINDEV Mobile", LightOrange, WholeWord)
// Deletes all highlighting
PDFReaderHighlight(PDF_READER_PDF)
Syntax
<Result> = PDFReaderHighlight(<PDF Reader control> , <Sought text> [, <Color> [, <Search options>]])
<Result>: Integer
  • Number of text occurrences found in the control.
  • 0 if no element contains the sought text.
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<Sought text>: Character string (with quotes)
  • Text that must be found in the specified element.
  • "" (empty string) to cancel the search.
<Color>: Integer, constant or optional Color variable
Color used to highlight the occurrences found. This color corresponds to:
Note: The color used by default is light yellow.
<Search options>: Optional Integer constant
Indicates the search options:
WholeWordSearch for a whole word (enclosed in punctuation characters or in space characters).
IgnoreCaseSearch while ignoring the case (uppercase/lowercase characters) or the accented characters.
0Search while taking the case into account (uppercase/lowercase characters) on a text "contained in".

No option is selected by default: the search is sensitive to the case and it is performed on incomplete words.
Remarks
  • As long as this function is not called with an empty string ("") to stop the highlighting, all new calls will add an additional highlighting.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment