DiagramControl.CustomCursor Event

Occurs when the mouse cursor enters the diagram control.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v20.1.dll

Declaration

[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomCursorEventArgs> CustomCursor
<DiagramCategory(DiagramCategory.Behavior)>
Public Event CustomCursor As EventHandler(Of DiagramCustomCursorEventArgs)

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