| Infragistics.Win Namespace > UIElement Class : Cursor Property (UIElement) |
Returns the cursor that should be used when the mouse is over the element. By default this just walks up the parent chain by returning its parent's cursor
[Visual Basic]
Public Overridable ReadOnly Property Cursor As Cursor[C#]
public virtual Cursor Cursor {get;}This sample overrides the virtual property Cursor on UIElement. It displays a 'hand' cursor when the mouse is over the UIElement.
[Visual Basic]
Imports System.Windows.Forms
Public Overrides ReadOnly Property Cursor() As Cursor
Get
Return Cursors.Hand
End Get
End Property[C#]
using System.Windows.Forms;
public override Cursor Cursor
{
get
{
return Cursors.Hand ;
}
}