Class FindTextViewModel
Inheritance
System.Object
FindTextViewModel
Assembly: pdftron.PDF.Tools.dll
Syntax
public class FindTextViewModel : ViewModelBase
Constructors
FindTextViewModel(PDFViewCtrl, CustomColorModeType)
Declaration
public FindTextViewModel(PDFViewCtrl ctrl, CustomColorModeType colorMode)
Parameters
Properties
CloseCommand
Declaration
public RelayCommand CloseCommand { get; }
Property Value
CurrentFullSearchItem
Declaration
public FullSearchItem CurrentFullSearchItem { get; set; }
Property Value
CurrentFullSearchStatusText
Declaration
public string CurrentFullSearchStatusText { get; }
Property Value
Type |
Description |
System.String |
|
FoundFullSearchItems
Declaration
public bool FoundFullSearchItems { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
FullSearchItemClickedCommand
Declaration
public RelayCommand FullSearchItemClickedCommand { get; }
Property Value
FullSearchItems
Declaration
public ObservableCollection<FullSearchItem> FullSearchItems { get; }
Property Value
FullSearchResultText
Declaration
public string FullSearchResultText { get; }
Property Value
Type |
Description |
System.String |
|
IsFullSearchEnabled
Declaration
public bool IsFullSearchEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsInSearchMode
Declaration
public bool IsInSearchMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsPrevNextAvailable
Declaration
public bool IsPrevNextAvailable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsSearchBoxEnabled
Declaration
public bool IsSearchBoxEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsSearchProgessVisible
Declaration
public bool IsSearchProgessVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsTermNotFound
Declaration
public bool IsTermNotFound { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
PrevNextCommand
Declaration
public RelayCommand PrevNextCommand { get; }
Property Value
PrevSearchTextTerm
Declaration
public string PrevSearchTextTerm { get; set; }
Property Value
Type |
Description |
System.String |
|
SearchCommand
Declaration
public RelayCommand SearchCommand { get; }
Property Value
SearchFullCommand
Declaration
public RelayCommand SearchFullCommand { get; }
Property Value
SearchProgress
Declaration
public double SearchProgress { get; set; }
Property Value
Type |
Description |
System.Double |
|
SearchTermChangedCommand
Declaration
public RelayCommand SearchTermChangedCommand { get; }
Property Value
SearchTermKeyUpCommand
Declaration
public RelayCommand SearchTermKeyUpCommand { get; }
Property Value
SearchTextTerm
Declaration
public string SearchTextTerm { get; set; }
Property Value
Type |
Description |
System.String |
|
TextSearchSemaphore
Declaration
public SemaphoreSlim TextSearchSemaphore { get; }
Property Value
Type |
Description |
SemaphoreSlim |
|
Methods
ClearViewModel()
Declaration
public void ClearViewModel()
HandleKeyboardEventAsync(VirtualKey, Boolean, Boolean, Boolean)
Declaration
public Task<bool> HandleKeyboardEventAsync(VirtualKey key, bool isCtrlDown, bool isAltDown, bool isShiftDown)
Parameters
Type |
Name |
Description |
Windows.System.VirtualKey |
key |
|
System.Boolean |
isCtrlDown |
|
System.Boolean |
isAltDown |
|
System.Boolean |
isShiftDown |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
SearchDelegate(IAsyncOperation<PDFViewCtrlSelection>, AsyncStatus)
Declaration
public void SearchDelegate(IAsyncOperation<PDFViewCtrlSelection> asyncAction, AsyncStatus asyncStatus)
Parameters
Type |
Name |
Description |
Windows.Foundation.IAsyncOperation<PDFViewCtrlSelection> |
asyncAction |
|
Windows.Foundation.AsyncStatus |
asyncStatus |
|
WaitForTextSearchToCancel()
Wait for this before disposing the PDFDoc, after you call ClearViewModel().
This guarantees that no searching is active.
Declaration
public Task WaitForTextSearchToCancel()
Returns
Events
FindTextClosed
Declaration
public event FindTextViewModel.FindTextClosedDelegate FindTextClosed
Event Type
FindTextResultFound
Declaration
public event FindTextViewModel.FindTextResultFoundDelegate FindTextResultFound
Event Type
FocusRequested
Declaration
public event EventHandler<Deferral> FocusRequested
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.Foundation.Deferral> |
|
PageChanged
Declaration
public event FindTextViewModel.PageChangedDelegate PageChanged
Event Type