Back to Devexpress

DiagramControl.CustomItemDrag Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-d7a646ca.md

latest2.4 KB
Original Source

DiagramControl.CustomItemDrag Event

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

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomItemDragEventArgs> CustomItemDrag
vb
<DiagramCategory(DiagramCategory.Behavior)>
Public Event CustomItemDrag As EventHandler(Of DiagramCustomItemDragEventArgs)

Event Data

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

PropertyDescription
DataProvides data about the diagram items the end-user is dragging.
ItemsReturns the list of items that are objects of the drag-and-drop operation.
ResultReturns the drag-and-drop operation result.
SourceItemReturns the item the end-user is dragging.
SourceItemPointReturns 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

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace