Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DiagramItemCreatingEventArgs(Type, ItemUsage, DiagramItem) Constructor

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

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

NuGet Package: DevExpress.Win.Diagram

#Declaration

public DiagramItemCreatingEventArgs(
    Type itemType,
    ItemUsage itemUsage,
    DiagramItem item
)

#Parameters

Name Type Description
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.

#Remarks

Instances of the DiagramItemCreatingEventArgs class are automatically created, initialized and passed to the corresponding event handlers.

See Also