Search
Diagram.CreateAddItemCmd Method
See Also
 





Creates an AddItemCmd instance that implements undo/redo of adding an item to the diagram.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected virtual AddItemCmd CreateAddItemCmd (
    DiagramItem item
)

Visual Basic  Copy Code

Protected Overridable Function CreateAddItemCmd( _
    item As DiagramItem _
) As AddItemCmd

 Parameters

item

The item being added to the diagram.

 Return Value

An instance of AddItemCmd or derived class.

 Remarks

You can override this method to return a custom command that stores additional information about the added item, or handles the addition of more than one items.

 See Also