Creates an item state corresponding to the type of this diagram item.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
protected virtual DiagramItemState CreateState () |
Visual Basic Copy Code |
---|
Protected Overridable Function CreateState () As DiagramItemState |
An instance of DiagramItemState or a derived class.
This method is used by the undo/redo system to create a DiagramItemState -derived object that corresponds to the item class. Custom item classes must override CreateState in order to implement undo/redo support for any additional members they define. This method should be overridden together with SaveState and RestoreState.