windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-5f2eb810.md
Occurs while diagram items are dragged.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomItemGiveFeedbackEventArgs> CustomItemGiveFeedback
<DiagramCategory(DiagramCategory.Behavior)>
Public Event CustomItemGiveFeedback As EventHandler(Of DiagramCustomItemGiveFeedbackEventArgs)
The CustomItemGiveFeedback event's data class is DiagramCustomItemGiveFeedbackEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cursor | Gets or sets the cursor type used during the drag-and-drop operation. |
| Effects | Gets a value that indicates the effects of the drag-and-drop operation. |
| Items | Returns the list of items that are objects of the drag-and-drop operation. |
Handle the CustomItemGiveFeedback event to modify the appearance of the mouse pointer during the drag operation. See the example below.
void diagram_CustomItemGiveFeedback(object sender, DiagramCustomItemGiveFeedbackEventArgs e)
{
e.Cursor = DragDropCursor.Custom;
Cursor.Current = Cursors.No;
}
Private Sub diagram_CustomItemGiveFeedback(ByVal sender As Object, ByVal e As DiagramCustomItemGiveFeedbackEventArgs)
e.Cursor = DragDropCursor.Custom
Cursor.Current = Cursors.No
End Sub
See Also