[]
        
(Showing Draft Content)

C1.WPF.Document.C1TextSearchManager.FindStartAsync

FindStartAsync Method

FindStartAsync(int, SearchScope, C1FindTextParams, bool)

Non-blocking (asynchronous) version of the FindStart(int, SearchScope, C1FindTextParams) method.

Declaration
public Task<C1FoundPosition> FindStartAsync(int startPageIndex, SearchScope scope, C1FindTextParams findParams, bool throwException)
Parameters
Type Name Description
int startPageIndex

0-based index of the first page to search.

SearchScope scope

The search scope.

C1FindTextParams findParams

The text search parameters.

bool throwException

Whether to throw an exception if a document access error occurred while searching.

Returns
Type Description
Task<C1FoundPosition>

Asynchronous object representing the found text position.

FindStartAsync(int, bool, C1FindTextParams, bool)

Non-blocking (asynchronous) version of the FindStart(int, bool, C1FindTextParams) method.

Declaration
public Task<C1FoundPosition> FindStartAsync(int startPageIndex, bool wholeDocument, C1FindTextParams findParams, bool throwException)
Parameters
Type Name Description
int startPageIndex

0-based index of the first page to search.

bool wholeDocument

Indicates whether whole document should be loaded during searching or to the first fragment found.

C1FindTextParams findParams

The text search parameters.

bool throwException

Whether to throw an exception if a document access error occurred while searching.

Returns
Type Description
Task<C1FoundPosition>

Asynchronous object representing the found text position.