Class TextSearcher
With this class an open Document can be searched.
Inheritance
System.Object
TextSearcher
Namespace: PSPDFKit.Search
Assembly: PSPDFKit.dll
Syntax
public sealed class TextSearcher
Constructors
TextSearcher()
Constructs a TextSearcher.
Declaration
public TextSearcher()
Methods
CancelSearches()
Cancel any searches currently being performed.
Declaration
public void CancelSearches()
SearchDocumentAsync(Document, Query)
Search the document for text that matches SearchTerm.
Declaration
public void SearchDocumentAsync(Document document, Query query)
Parameters
Type | Name | Description |
---|---|---|
Document | document | The Document to be searched |
Query | query | The Query that specifies the text to be searched for and other options. |
Events
SearchCompleteHandler
Invoked when a search is complete with the TextSearcher object and the UID string of the search.
Declaration
public event TypedEventHandler<TextSearcher, string> SearchCompleteHandler
Event Type
Type | Description |
---|---|
Windows.Foundation.TypedEventHandler<TextSearcher, System.String> |
SearchResultHandler
Invoked for each page unless ReturnEmptyResults is set to false.
Declaration
public event TypedEventHandler<TextSearcher, PageResults> SearchResultHandler
Event Type
Type | Description |
---|---|
Windows.Foundation.TypedEventHandler<TextSearcher, PageResults> |