Search
UndoManager.UndoEnabled Property
See Also
 






Gets or sets a value indicating whether saving action records for later undo is enabled.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool UndoEnabled { get; set; }

Visual Basic  Copy Code

Public Property UndoEnabled As Boolean

 Property Value

true to save actions for later undo, or false otherwise. The default is false.

 Remarks

You might need to disable undo:

  • before executing actions you don't want end-users to undo, for example creating special start/end nodes.
  • before creating programmatically a lot of new diagram items - say hundreds or thousands. MindFusion.Diagramming creates an undo record for each item creation; if the Capacity of the command history is smaller than the number of items created, most of the records will drop from the history queue while adding new ones. That would waste processing power and memory for creating undo records that won't be used.

 See Also