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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.