Skip to main content

DiagramControl.CustomCursor Event

Occurs when the mouse cursor enters the diagram control.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomCursorEventArgs> CustomCursor

Event Data

The CustomCursor event's data class is DevExpress.XtraDiagram.DiagramCustomCursorEventArgs.

Remarks

Use the CustomCursor event to display a custom mouse cursor. The following example demonstrates a CustomCursor event handler that replaces the standard cursor.

private void diagramControl_CustomCursor(object sender, DiagramCustomCursorEventArgs e) {
    e.Cursor = new Cursor("/Resources/CustomCursor.ani");
}
See Also