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

DiagramControl.ItemsChanged Event

Fires each time an item is added or removed from the diagram.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v19.1.dll


public event EventHandler<DiagramItemsChangedEventArgs> ItemsChanged

Event Data

The ItemsChanged event's data class is DiagramItemsChangedEventArgs. The following properties provide information specific to this event:

Property Description
Action Indicates whether the item is being added or removed.
Item Returns the item that is being added or removed from the diagram.


The ItemsChanged event fires whenever the DiagramControl.Items collection is modified (a document is loaded, a user performs the Undo/Redo actions, etc.).

The event parameter’s DiagramItemsChangedEventArgs.Action property indicates whether the item has been added or removed.

See Also