AnnotationManager Methods
The AnnotationManager type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AddAnnotation |
Adds and displays a new annotation.
| |
| AddCustomAnnotationTypes |
This method must be used to register custom annotation types before they can be saved or loaded using SaveAnnotations()()()() and LoadAnnotations(Stream, Predicate<(Of <<'(Annotation>)>>)). Built-in types do not need to be added.
| |
| AddUndoAnnotationState |
Allows users to manually define an undo command on a specified annotation.
| |
| ClearAnnotations |
Removes all of the annotations.
| |
| ClearUndoRedoHistory |
Clears the stored history for the Undo() and Redo() methods.
| |
| CopySelectedAnnotations |
Copies the selected annotations to a temporary buffer.
Use the PasteCopiedAnnotations(Nullable<(Of <<'(Int32>)>>)) method to create a duplicate of the copied annotations to the document
| |
| CutSelectedAnnotations |
Copies the selected annotations to a temporary buffer and then deletes them.
Use the PasteCopiedAnnotations(Nullable<(Of <<'(Int32>)>>)) method to create a duplicate of the copied annotations to the document
| |
| DeselectAllAnnotations |
Deselects all currently selected annotations
| |
| GetAllChangedAnnotations |
Gets a Dictionary of changed annotations and how they were changed
| |
| GetAnnotationByPoint |
Gets the annotation at a specified point in the DocumentViewer
| |
| GetNewAnnotationCanvases |
Creates and returns a set of new annotation-containing canvases. Useful for printing.
| |
| LoadAnnotations |
Creates annotations that were previously serialized using SaveAnnotations()()()().
| |
| PasteCopiedAnnotations |
Creates copies of the annotations copied using the CutSelectedAnnotations()()()() or
CopySelectedAnnotations()()()() methods onto the document
| |
| Redo |
If the Undo()()()() method is called, Redo() reapplies its effects
| |
| RedrawAnnotation |
Causes the specified annotation to be redrawn. Typically called after the annotation's properties have been changed.
| |
| RemoveAnnotation |
Removes the specified annotation.
| |
| RemoveAnnotations |
Removes the specified list of annotations.
| |
| SaveAnnotations |
Serializes the annotations into a byte array containing XML (UTF-8 encoded). This data can be saved and then loaded using LoadAnnotations(Stream, Predicate<(Of <<'(Annotation>)>>)) to re-create the annotations.
| |
| SelectAnnotation |
Adds the specified annotation to the list of selected annotations.
If the annotation cannot be selected, this method returns false.
| |
| Undo |
Reverts the effects of the previous action preformed by the DocumentViewer on the annotations
|