Muokkaa

Jaa


MouseDevice.SetCursor(Cursor) Method

Definition

Sets the mouse pointer to the specified Cursor.

public:
 bool SetCursor(System::Windows::Input::Cursor ^ cursor);
[System.Security.SecurityCritical]
public bool SetCursor (System.Windows.Input.Cursor cursor);
public bool SetCursor (System.Windows.Input.Cursor cursor);
[<System.Security.SecurityCritical>]
member this.SetCursor : System.Windows.Input.Cursor -> bool
member this.SetCursor : System.Windows.Input.Cursor -> bool
Public Function SetCursor (cursor As Cursor) As Boolean

Parameters

cursor
Cursor

The cursor to set the mouse pointer to.

Returns

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

Attributes

Remarks

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

Applies to