MouseDevice.SetCursor(Cursor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.