Export (0) Print
Expand All

MouseDevice.SetCursor Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft