SearchTextAsync Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
Searches for a particular text string on the currently displayed Document, starting on the current page (see CurrentPageNumber).

Namespace: PDFTron.SilverDox.Controls
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void SearchTextAsync(
	string pattern,
	TextSearch..::..SearchModes mode,
	Action<TextSearch..::..OnTextSearchAsyncCallbackArgs> searchNextCompleteCallback
)
Visual Basic
Public Sub SearchTextAsync ( _
	pattern As String, _
	mode As TextSearch..::..SearchModes, _
	searchNextCompleteCallback As Action(Of TextSearch..::..OnTextSearchAsyncCallbackArgs) _
)
Visual C++
public:
void SearchTextAsync(
	String^ pattern, 
	TextSearch..::..SearchModes mode, 
	Action<TextSearch..::..OnTextSearchAsyncCallbackArgs^>^ searchNextCompleteCallback
)

Parameters

pattern
Type: System..::..String
The string to search for.
mode
Type: PDFTron.SilverDox.Documents.Text..::..TextSearch..::..SearchModes
The options for search, controlling options such as case sensitivity and search direction.
searchNextCompleteCallback
Type: System..::..Action<(Of <(<'TextSearch..::..OnTextSearchAsyncCallbackArgs>)>)>
A callback function that is called within SearchTextAsync()()()(), which is used to deliver the results of the last search operation.

See Also