AnnotationUndoManagerEndUndoMerge Method |
Namespace: Atalasoft.Annotate.UI
// Tell the AnnotationUndoManager to combine the undo changes. this.annotateViewer1.Annotations.UndoManager.BeginUndoMerge(); // Make some changes to the active annotation. AnnotationUI ann = this.annotateViewer1.Annotations.ActiveAnnotation; ann.Data.Name = "My New Name"; ann.Data.Size = new SizeF(100, 120); ann.Data.Location = new PointF(45, 60); // Store the above changes into a single undo. this.annotateViewer1.Annotations.UndoManager.EndUndoMerge();
' Tell the AnnotationUndoManager to combine the undo changes. Me.annotateViewer1.Annotations.UndoManager.BeginUndoMerge() ' Make some changes to the active annotation. Dim ann As AnnotationUI = Me.annotateViewer1.Annotations.ActiveAnnotation ann.Data.Name = "My New Name" ann.Data.Size = New SizeF(100, 120) ann.Data.Location = New PointF(45, 60) ' Store the above changes into a single undo. Me.annotateViewer1.Annotations.UndoManager.EndUndoMerge()