Version

Cursor Property (TaskConstituentUIElementBase)

Returns the Cursor that is displayed when the user passes the mouse pointer over this element.
Syntax
'Declaration
 
Public Overrides ReadOnly Property Cursor As Cursor
public override Cursor Cursor {get;}
Example
This sample overrides the virtual property Cursor on UIElement. It displays a 'hand' cursor when the mouse is over the UIElement.

Imports System.Windows.Forms

Public Overrides ReadOnly Property Cursor() As Cursor

    Get
        Return Cursors.Hand
    End Get

End Property
using System.Windows.Forms;

public override Cursor Cursor
{

	get
	{
		return Cursors.Hand ;
	}

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also