TextSearch.OnTextSearchAsyncCallbackArgs Members

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image

TextSearch searches through a Document for a user-given search pattern. TextSearch provides users with several useful search modes and extra information besides the found string that matches the pattern. TextSearch can either keep running until a matched string is found or be set to return periodically in order for the caller to perform any necessary updates (e.g., UI updates).

The TextSearch..::..OnTextSearchAsyncCallbackArgs type exposes the following members.

Properties

  NameDescription
Public propertyAmbientString
The text surrounding the ResultString.
Public propertyAsyncState
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
Public propertyAsyncWaitHandle
Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
Public propertyCompletedSynchronously
Gets a value that indicates whether the asynchronous operation completed synchronously.
Public propertyError
If an error has occured, Error contains information about the error; otherwise, Error is null.
Public propertyIsCompleted
Gets a value that indicates whether the asynchronous operation has completed.
Public propertyPageNumber
The page number which the search was conducted on.
Public propertyQuads
A list of Quads, representing the bounding box(es) of the found text. Useful for highlighting the text.
Public propertyResultCode
The reason the search completed.
Public propertyResultString
The found text.

See Also