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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.