Search
Item.CreateState Method
See Also
 






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

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

protected virtual ItemState CreateState ()

Visual Basic  Copy Code

Protected Overridable Function CreateState () As ItemState

 Return Value

An instance of ItemState or a derived class.

 Remarks

This method is used by the undo/redo system to create an ItemState-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