Skip to main content

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

public virtual void SetCursor(
    Cursor newCursor
)

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:

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.

See Also