A newer version of this page is available. Switch to the current version.

DiagramControl.AddingNewItem Event

Fires each time a new item is added to the diagram by the end-user (e.g., dropped from the toolbox, drawn using a tool).

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v19.1.dll


public event EventHandler<DiagramAddingNewItemEventArgs> AddingNewItem

Event Data

The AddingNewItem event's data class is DevExpress.XtraDiagram.DiagramAddingNewItemEventArgs.


Set the event parameter’s DiagramAddingNewItemEventArgs.Cancel property to true to prevent adding an item to the diagram.

See Also