Skip to main content

DiagramControl.ItemsChanged Event

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

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
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.

Remarks

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