DiagramLite Programmer's Guide
DiagramItem.SaveState Method
See Also
 





Saves the state of this diagram item.

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

 Syntax

C#  Copy Code

public virtual DiagramItemState SaveState ()

Visual Basic  Copy Code

Public Overridable Function SaveState () As DiagramItemState

 Return Value

A DiagramItemState that represents the current state of the item.

 Remarks

This method is used by the undo/redo system to save the state of an item. Custom item classes must override SaveState in order to implement undo/redo support for any additional members they define. This method should be overridden together with CreateState and RestoreState.

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming Namespace