VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation.UI.Undo Namespace / AnnotationViewerUndoMonitor Class
Members Example



In This Topic
    AnnotationViewerUndoMonitor Class
    In This Topic
    Undo monitor that monitors the Vintasoft.Imaging.Annotation.UI.AnnotationViewer object and adds undo action to an undo manager if Vintasoft.Imaging.Annotation.UI.AnnotationViewCollection is changed.
    Object Model
    AnnotationViewerUndoMonitor ClassIDataStorage InterfaceImageCollectionUndoManagersDispatcher ClassUndoManager Class
    Syntax
    'Declaration
     
    Public Class AnnotationViewerUndoMonitor 
       Inherits Vintasoft.Imaging.Undo.ImageViewerUndoMonitor
    public class AnnotationViewerUndoMonitor : Vintasoft.Imaging.Undo.ImageViewerUndoMonitor 
    public __gc class AnnotationViewerUndoMonitor : public Vintasoft.Imaging.Undo.ImageViewerUndoMonitor 
    public ref class AnnotationViewerUndoMonitor : public Vintasoft.Imaging.Undo.ImageViewerUndoMonitor 
    Example
    This example shows how to monitor the changes in annotations.
    ''' <summary>
    ''' Creates the undo monitor for annotation viewer.
    ''' </summary>
    ''' <param name="undoManager">The undo manager.</param>
    ''' <param name="annotationViewer">The annotation viewer.</param>
    Public Shared Function CreateUndoMonitorForAnnotationViewer(undoManager As Vintasoft.Imaging.Undo.UndoManager, annotationViewer As Vintasoft.Imaging.Annotation.UI.AnnotationViewer) As Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor
        ' create the undo monitor for annotation viewer
        Dim monitor As New Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor(undoManager, annotationViewer)
                
        ' returns the undo monitor for annotation viewer
        Return monitor
    End Function
    /// <summary>
    /// Creates the undo monitor for annotation viewer.
    /// </summary>
    /// <param name="undoManager">The undo manager.</param>
    /// <param name="annotationViewer">The annotation viewer.</param>
    public static Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor CreateUndoMonitorForAnnotationViewer(
        Vintasoft.Imaging.Undo.UndoManager undoManager,
        Vintasoft.Imaging.Annotation.UI.AnnotationViewer annotationViewer)
    {
        // create the undo monitor for annotation viewer
        Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor monitor =
            new Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor(undoManager, annotationViewer);
                
        // returns the undo monitor for annotation viewer
        return monitor;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Undo.UndoMonitor
          Vintasoft.Imaging.Undo.ImageViewerUndoMonitor
             Vintasoft.Imaging.Annotation.UI.Undo.AnnotationViewerUndoMonitor

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also