Handles undo / redo of programmatic property changes.
Namespace: MindFusion.Diagramming.Commands
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public class ChangeItemCmd : Command |
Visual Basic
Copy Code
|
|---|
Public Class ChangeItemCmd |
RemarksYou would create an instance of this class in order to enable undo / redo of changes to item's properties. The constructor records the initial state of the item and the Execute method records the final state and adds the ChangeItemCmd object to the undo manager's history.
ExampleC#
Copy Code
|
|---|
// Save item state |
Visual Basic
Copy Code
|
|---|
' Save item state |
Inheritance HierarchySystem.Object![]()
MindFusion.Diagramming.Commands.Command
MindFusion.Diagramming.Commands.ChangeItemCmd
See Also