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

DiagramControl.CustomItemGiveFeedback Event

Occurs while diagram items are dragged.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v20.2.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomItemGiveFeedbackEventArgs> CustomItemGiveFeedback

Event Data

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.

Remarks

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;
}
See Also