VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Annotation.UI.Undo Namespace / AnnotationViewerUndoMonitor Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
    AnnotationViewerUndoMonitor Class
    In This Topic
    Undo monitor that monitors the AnnotationViewer object and adds undo action to an undo manager if AnnotationViewCollection is changed.
    Object Model
    IDataStorage ImageCollectionUndoManagersDispatcher UndoManager AnnotationViewerUndoMonitor
    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

    Here is an example that shows how to monitor 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: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also