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

DiagramControl.CustomItemDrag Event

Occurs when an end-user starts dragging a diagram item.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v19.1.dll

Declaration

[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomItemDragEventArgs> CustomItemDrag

Event Data

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

Property Description
Data Provides data about the diagram items the end-user is dragging.
Items Returns the list of items that are objects of the drag-and-drop operation.
Result For internal use.
SourceItem Returns the item the end-user is dragging.
SourceItemPoint Returns the point on the canvas where the end-user initiated the drag-and-drop operation.

Remarks

Handle the CustomItemDrag event to customize drag and drop for diagram items.

In the event handler, call the DragDrop.DoDragDrop method and assign the Data event parameter to the method’s data parameter.

See Also