VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Undo Namespace / VisualToolUndoMonitor Class
Members Example



In This Topic
    VisualToolUndoMonitor Class
    In This Topic
    The undo monitor that monitors the Vintasoft.Imaging.UI.VisualTools.VisualTool object and adds an undo action to an undo manager if Vintasoft.Imaging.UI.VisualTools.VisualTool changed an image.
    Object Model
    VisualToolUndoMonitor ClassIDataStorage InterfaceUndoManager Class
    Syntax
    'Declaration
     
    Public Class VisualToolUndoMonitor 
       Inherits UndoMonitor
    public class VisualToolUndoMonitor : UndoMonitor 
    public __gc class VisualToolUndoMonitor : public UndoMonitor 
    public ref class VisualToolUndoMonitor : public UndoMonitor 
    Example
    This example shows how to monitor the visual tool changes in images.
    ''' <summary>
    ''' Creates the undo monitor for visual tool.
    ''' </summary>
    ''' <param name="undoManager">The undo manager.</param>
    ''' <param name="visualTool">The visual tool.</param>
    Public Shared Function CreateUndoMonitorForVisualTool(undoManager As Vintasoft.Imaging.Undo.UndoManager, visualTool As Vintasoft.Imaging.UI.VisualTools.VisualTool) As Vintasoft.Imaging.Undo.VisualToolUndoMonitor
        ' create the undo monitor for visual tool
        Dim undoMonitor As New Vintasoft.Imaging.Undo.VisualToolUndoMonitor(undoManager, visualTool)
                
        ' returns the undo monitor for visual tool
        Return undoMonitor
    End Function
    /// <summary>
    /// Creates the undo monitor for visual tool.
    /// </summary>
    /// <param name="undoManager">The undo manager.</param>
    /// <param name="visualTool">The visual tool.</param>
    public static Vintasoft.Imaging.Undo.VisualToolUndoMonitor CreateUndoMonitorForVisualTool(
        Vintasoft.Imaging.Undo.UndoManager undoManager,
        Vintasoft.Imaging.UI.VisualTools.VisualTool visualTool)
    {
        // create the undo monitor for visual tool
        Vintasoft.Imaging.Undo.VisualToolUndoMonitor undoMonitor =
            new Vintasoft.Imaging.Undo.VisualToolUndoMonitor(undoManager, visualTool);
                
        // returns the undo monitor for visual tool
        return undoMonitor;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Undo.UndoMonitor
          Vintasoft.Imaging.Undo.VisualToolUndoMonitor

    Requirements

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

    See Also