New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Media.Imaging.History

Assembly:Telerik.Windows.Controls.ImageEditor.dll

Syntax:

C#
public class ImageHistory

Inheritance: objectImageHistory

Constructors

C#
public ImageHistory()

Fields

C#
public const int DefaultDepth = 1000

Properties

Determines whether a redo operation is available.

C#
public bool CanRedo { get; }

Determines whether an undo operation is available.

C#
public bool CanUndo { get; }

Gets the current image.

C#
public RadBitmap CurrentImage { get; }

Gets or sets the max count allowed in both undo and redo stacks.

C#
public int Depth { get; set; }

Gets or sets the maximum amount of memory in bytes the history manager can use to optimize the undo and redo operations.

C#
public long MaximumMemoryBufferSize { get; set; }

Methods

Clears both undo and redo stacks.

C#
public void Clear()
C#
public void Clear(RadBitmap newImage)
Parameters:newImageRadBitmap
C#
public void Execute(IImageCommand command, object context)
Parameters:commandIImageCommandcontextobject
C#
public void Redo()
C#
public void Undo()

Events

C#
public event EventHandler CurrentImageChanged
C#
public event EventHandler RedoExecuted
C#
public event EventHandler RedoExecuting
C#
public event EventHandler UndoExecuted
C#
public event EventHandler UndoExecuting