PDFViewCtrlFindTextAsync Method (String, Boolean, Boolean, Boolean, Boolean, Int32) |
Selects text by searching for a given string of text.
Note that to cancel the text search, use PDFViewCtrl.CancelFindText, as opposed to canceling the operation that is returned.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public IAsyncOperation<PDFViewCtrlSelection> FindTextAsync(
string str,
bool match_case,
bool match_whole_word,
bool search_up,
bool reg_exp,
int start_page
)
Public Function FindTextAsync (
str As String,
match_case As Boolean,
match_whole_word As Boolean,
search_up As Boolean,
reg_exp As Boolean,
start_page As Integer
) As IAsyncOperation(Of PDFViewCtrlSelection)
public:
virtual IAsyncOperation<PDFViewCtrlSelection^>^ FindTextAsync(
[InAttribute] String^ str,
[InAttribute] bool match_case,
[InAttribute] bool match_whole_word,
[InAttribute] bool search_up,
[InAttribute] bool reg_exp,
[InAttribute] int start_page
) sealed
function FindTextAsync(str, match_case, match_whole_word, search_up, reg_exp, start_page);
Parameters
- str
- Type: SystemString
string to search
- match_case
- Type: SystemBoolean
whether to match case
- match_whole_word
- Type: SystemBoolean
whether to match the whole word
- search_up
- Type: SystemBoolean
whether to search up
- reg_exp
- Type: SystemBoolean
use regular expressions
- start_page
- Type: SystemInt32
The page on which to start search. By default, search will start from the current page and current selection.
Return Value
Type:
IAsyncOperationPDFViewCtrlSelectionWhen this method completes, it returns the new text selection as a PDFViewCtrlSelection
See Also