DiagramItemCreatingEventArgs(DiagramControl, Type, ItemUsage, DiagramItem) Constructor

Initializes a new instance of the DiagramItemCreatingEventArgs class with the specified settings.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll


public DiagramItemCreatingEventArgs(
    DiagramControl source,
    Type itemType,
    ItemUsage itemUsage,
    DiagramItem item
Public Sub New(
    source As DiagramControl,
    itemType As Type,
    itemUsage As ItemUsage,
    item As DiagramItem


Name Type Description
source DiagramControl

The DiagramControl that raised the event.

itemType Type

A System.Type object that represents the type of the item that is about to be created.

itemUsage ItemUsage

A DevExpress.Diagram.Core.ItemUsage enumeration value that specifies whether the item is a part of the diagram or toolbox preview.

item DiagramItem

A DiagramItem object that represents the item that is about to be created.

See Also