VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Undo Namespace / ImageViewerUndoMonitor Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
    ImageViewerUndoMonitor Class
    In This Topic
    The undo monitor that monitors changes in the ImageViewer object.
    Object Model
    IDataStorage ImageCollectionUndoManagersDispatcher UndoManager ImageViewerUndoMonitor
    Syntax
    'Declaration
    
    Public Class ImageViewerUndoMonitor
       Inherits UndoMonitor
    
    
    public class ImageViewerUndoMonitor : UndoMonitor
    
    
    public __gc class ImageViewerUndoMonitor : public UndoMonitor*
    
    
    public ref class ImageViewerUndoMonitor : public UndoMonitor^
    
    
    Example

    This C#/VB.NET code shows how to monitor the visual tools changes in images.

    
    ''' <summary>
    ''' Creates the undo monitor for image viewer.
    ''' </summary>
    ''' <param name="undoManager">The undo manager.</param>
    ''' <param name="imageViewer">The image viewer.</param>
    Public Shared Function CreateUndoMonitorForImageViewer(undoManager As Vintasoft.Imaging.Undo.UndoManager, imageViewer As Vintasoft.Imaging.UI.ImageViewer) As Vintasoft.Imaging.Undo.ImageViewerUndoMonitor
        ' create the undo monitor for image viewer
        Dim undoMonitor As New Vintasoft.Imaging.Undo.ImageViewerUndoMonitor(undoManager, imageViewer)
    
        ' returns the undo monitor for image viewer
        Return undoMonitor
    End Function
    
    
    
    /// <summary>
    /// Creates the undo monitor for image viewer.
    /// </summary>
    /// <param name="undoManager">The undo manager.</param>
    /// <param name="imageViewer">The image viewer.</param>
    public static Vintasoft.Imaging.Undo.ImageViewerUndoMonitor CreateUndoMonitorForImageViewer(
        Vintasoft.Imaging.Undo.UndoManager undoManager,
        Vintasoft.Imaging.UI.ImageViewer imageViewer)
    {
        // create the undo monitor for image viewer
        Vintasoft.Imaging.Undo.ImageViewerUndoMonitor undoMonitor =
            new Vintasoft.Imaging.Undo.ImageViewerUndoMonitor(undoManager, imageViewer);
    
        // returns the undo monitor for image viewer
        return undoMonitor;
    }
    
    

    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