Click or drag to resize
Pdf Library for .NET

PdfToTextSearch(String, Boolean, Boolean) Method

Searches the document for the given text and returns the bounding rectangle of every occurrence.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public TextPosition[] Search(
	string textToSearch,
	bool caseSensitive,
	bool wholeWordsOnly
)

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

TextPosition
The position of every occurrence found; an empty array when there are none.
See Also