







![]() ![]() |
PDFTron SilverDox SDK |
AnnotationManager..::..AddUndoAnnotationState Method |
AnnotationManager Class See Also Send Feedback |
Allows users to manually define an undo command on a specified annotation.
Namespace: PDFTron.SilverDox.Documents.Annotations
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010
Syntax
C# |
---|
public void AddUndoAnnotationState( Annotation annotation, Dictionary<string, Object> oldPropValues ) |
Visual Basic |
---|
Public Sub AddUndoAnnotationState ( _ annotation As Annotation, _ oldPropValues As Dictionary(Of String, Object) _ ) |
Visual C++ |
---|
public: void AddUndoAnnotationState( Annotation^ annotation, Dictionary<String^, Object^>^ oldPropValues ) |
Parameters
- annotation
- Type: PDFTron.SilverDox.Documents.Annotations..::..Annotation
The annotation that's the target of the undo
- oldPropValues
- Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, Object>)>)>
A Dictionary containing the property name (key) and property value (value) for the annotation to revert back to in an undo
Remarks
This method allows users to manually define an undo command on a specified annotation. After using this method, the next time Undo()()()() is called, AnnotationManager will try to
set the properties listed in oldPropertyValues.Keys of the specified anotation their corresponding values listed in oldPropertyValues.Values. This method is useful for
building UI elements that change the property values of an annotation and registering the changes for an undo