VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
Vintasoft.Imaging.Undo Namespace / ImageViewerUndoMonitor Class
Члены типа Объект Синтаксис Example Иерархия Требования Смотрите также
В этом разделе
Класс ImageViewerUndoMonitor
В этом разделе
Монитор отмены, который отслеживает изменения в объекте ImageViewer.
Объектная модель
IDataStorage ImageCollectionUndoManagersDispatcher UndoManager ImageViewerUndoMonitor
Синтаксис
'Declaration

Public Class ImageViewerUndoMonitor
   Inherits UndoMonitor

public class ImageViewerUndoMonitor : UndoMonitor

Пример

Вот C#/VB.NET код, который демонстрирует, как отслеживать изменения визуальных инструментов в изображениях.


''' <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;
}

Иерархия наследования

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

Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также