Class AnnotationListViewModel
Note that if the document is being modified while this list is being generated
it could cause errors. Ensure that ClearViewModel() followed by awaiting
WaitForAnnotationListToCancel() happens before the document is modified.
Inheritance
System.Object
AnnotationListViewModel
Assembly: pdftron.PDF.Tools.dll
public class AnnotationListViewModel : ViewModelBase
Constructors
Declaration
public AnnotationListViewModel()
Declaration
public AnnotationListViewModel(PDFViewCtrl ctrl)
Parameters
Type |
Name |
Description |
PDFViewCtrl |
ctrl |
|
Properties
Declaration
public ObservableCollection<PageHeaderItem> AnnotationGroups { get; }
Property Value
Declaration
public SemaphoreSlim AnnotListSemaphore { get; }
Property Value
Type |
Description |
SemaphoreSlim |
|
Declaration
public Storyboard FlashAnimation { get; set; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.Animation.Storyboard |
|
Declaration
public Brush FlashBrush { get; set; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.Brush |
|
Declaration
public bool FoundAnnotations { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsFinishedLoading { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand ItemClickCommand { get; set; }
Property Value
Declaration
public NavigationStack NavigationStack { get; set; }
Property Value
Declaration
public PDFViewCtrl PDFViewCtrl { get; set; }
Property Value
Type |
Description |
PDFViewCtrl |
|
Declaration
public List<AnnotationItem> SelectedGroupItems { get; set; }
Property Value
Declaration
public AnnotationItem SelectedItem { get; set; }
Property Value
Declaration
public ToolManager ToolManager { get; set; }
Property Value
Methods
Declaration
public void ClearViewModel()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Load the Annotation list by iterating for each page of the
PDF document and adding each annotation to the list
Declaration
public void LoadAnnotationList()
Declaration
public void ScrollRectIntoView(int pageNumber, Rect rect)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
Windows.Foundation.Rect |
rect |
|
SwitchPageIfNecessary(Int32)
Will switch page if the current page can not be scrolled into view.
Declaration
public void SwitchPageIfNecessary(int pageNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
Declaration
public void ToolManager_SelectionChanged(IAnnot annotation, int pageNumber)
Parameters
Type |
Name |
Description |
IAnnot |
annotation |
|
System.Int32 |
pageNumber |
|
Declaration
public void ToolManager_SelectionGroupChanged(Dictionary<IAnnot, int> annotationGroup)
Parameters
Type |
Name |
Description |
Dictionary<IAnnot, System.Int32> |
annotationGroup |
|
Wait for this before disposing the PDFDoc, after you call ClearViewModel().
This guarantees that annots are not being extracted.
Declaration
public Task WaitForAnnotationListToFinish()
Returns
Events
PageChanged
Declaration
public event AnnotationListViewModel.PageChangedDelegate PageChanged
Event Type