See Also

UIElement Class  | UIElement Members

Language

Visual Basic

C#

Show All

See Also Languages Infragistics2.Win.v7.2

Cursor Property

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;}

Example

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 ; 
            } 
 
        }

See Also

UIElement Class  | UIElement Members

E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 1996-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.2.20072.1063