DiagramLite Programmer's Guide
DiagramItem.CreateState Method
See Also
 





Creates an item state corresponding to the type of this diagram item.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

protected virtual DiagramItemState CreateState ()

Visual Basic  Copy Code

Protected Overridable Function CreateState () As DiagramItemState

 Return Value

An instance of DiagramItemState or a derived class.

 Remarks

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.

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming Namespace