Back to Devexpress

DiagramControl.CustomItemGiveFeedback Event

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-5f2eb810.md

latest2.5 KB
Original Source

DiagramControl.CustomItemGiveFeedback Event

Occurs while diagram items are dragged.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

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

Event Data

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

PropertyDescription
CursorGets or sets the cursor type used during the drag-and-drop operation.
EffectsGets a value that indicates the effects of the drag-and-drop operation.
ItemsReturns 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.

csharp
void diagram_CustomItemGiveFeedback(object sender, DiagramCustomItemGiveFeedbackEventArgs e)
{
    e.Cursor = DragDropCursor.Custom;
    Cursor.Current = Cursors.No;
}
vb
Private Sub diagram_CustomItemGiveFeedback(ByVal sender As Object, ByVal e As DiagramCustomItemGiveFeedbackEventArgs)
    e.Cursor = DragDropCursor.Custom
    Cursor.Current = Cursors.No
End Sub

See Also

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace