MouseDevice.SetCursor Method (Cursor)


Sets the mouse pointer to the specified Cursor

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public bool SetCursor(
	Cursor cursor


Type: System.Windows.Input.Cursor

The cursor to set the mouse pointer to.

Return Value

Type: System.Boolean

true if the mouse cursor is set; otherwise, false.

Note that this cursor does not apply any particular UIElement, but rather it applies to the whole application.

.NET Framework
Available since 3.0
Return to top