NavBarControl.SetCursor(Cursor) Method
Sets the mouse pointer type when it is over the control.
Namespace: DevExpress.XtraNavBar
Assembly: DevExpress.XtraNavBar.v24.1.dll
NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
newCursor | Cursor | A System.Windows.Forms.Cursor descendant specifying the cursor type (available cursor types can be accessed via properties of the System.Windows.Forms.Cursors class). |
Remarks
The cursor type used when the mouse pointer is over the control is specified by the NavBarControl.Cursor property. However, mouse pointer type can be changed for following reasons:
- When an operation requires different cursor types (drag and drop, for instance).
- When the mouse pointer is over a group caption or link area. These control sections can have custom cursor types assigned via the NavBarControl.HotTrackedGroupCursor and NavBarControl.HotTrackedItemCursor properties respectively.
The SetCursor method is used to change cursor type for the described reasons. The NavBarControl.RestoreCursor method turns the cursor type back to a value specified by the NavBarControl.Cursor property.
This method is not designed to be used directly from your code.