Infragistics2.Win.v8.1
Cursor Property
See Also  Example
Infragistics.Win Namespace > UIElement Class : Cursor Property

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

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property Cursor As Cursor
C# 
public virtual 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.

Visual BasicCopy Code
    Imports System.Windows.Forms

    Public Overrides ReadOnly Property Cursor() As Cursor

        Get
            Return Cursors.Hand
        End Get

    End Property
C#Copy Code
       using System.Windows.Forms;

       
public override Cursor Cursor
       {

           get
           {
               
return Cursors.Hand ;
           }

       }

See Also