MouseDevice.SetCursor Method (Cursor)

 

Sets the mouse pointer to the specified Cursor

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

[SecurityCriticalAttribute]
public bool SetCursor(
	Cursor cursor
)

Parameters

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
Show: