Skip to main content
A newer version of this page is available. .

DiagramControl.ItemCreating Event

Occurs before a diagram item is added to the canvas.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v18.1.dll

Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramItemCreatingEventArgs> ItemCreating

Event Data

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

Property Description
Item Gets or sets the item that is about to be created.
ItemType Gets the type of the item that is about to be created.
ItemUsage Indicates whether the item is a part of the diagram or toolbox preview.

Remarks

Use the ItemCreating event to modify a diagram item before it is created.

See Also