VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Undo Namespace / ImageViewerUndoMonitor Class
Members Example



In This Topic
    ImageViewerUndoMonitor Class
    In This Topic
    The undo monitor that monitors changes in the Vintasoft.Imaging.UI.ImageViewer object.
    Object Model
    ImageViewerUndoMonitor ClassIDataStorage InterfaceImageCollectionUndoManagersDispatcher ClassUndoManager Class
    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 example 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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also