 |
PdfToTextSearch(String, Boolean, Boolean) Method |
Searches the document for the given text and returns the bounding rectangle of every
occurrence.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic TextPosition[] Search(
string textToSearch,
bool caseSensitive,
bool wholeWordsOnly
)
Public Function Search (
textToSearch As String,
caseSensitive As Boolean,
wholeWordsOnly As Boolean
) As TextPosition()
Parameters
- textToSearch String
- The text to search for.
- caseSensitive Boolean
- When true, the search is case-sensitive.
- wholeWordsOnly Boolean
- When true, only whole-word matches are returned.
Return Value
TextPositionThe position of every occurrence found; an empty array when there are none.
See Also