Compartir a través de


InkEdit.Cursor Property

Gets or sets the Cursor that appears when the mouse pointer is over the control.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Overrides Property Cursor As Cursor
'Usage
Dim instance As InkEdit
Dim value As Cursor

value = instance.Cursor

instance.Cursor = value
public override Cursor Cursor { get; set; }
public:
virtual property Cursor^ Cursor {
    Cursor^ get () override;
    void set (Cursor^ value) override;
}
/** @property */
public Cursor get_Cursor ()

/** @property */
public void set_Cursor (Cursor value)
public override function get Cursor () : Cursor

public override function set Cursor (value : Cursor)
Not applicable.

Property Value

The cursor that appears when the mouse pointer is over the control.

Remarks

The Cursor property overrides the Cursor property of the Control class.

If you set the Cursor property to System.Windows.Forms.Cursors.Default, the behavior of the mouse cursor is based on the drawing attributes of the current cursor in view. If you disable the object while keeping the default cursor setting, the cursor override is disabled and the mouse cursor setting is based on the underlying windows mouse cursor attributes. Setting the cursor to null also disables the object's cursor handling.

If the cursor is set to anything but System.Windows.Forms.Cursors.Default, the object always uses that cursor whether or not the object is enabled.

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkEdit Class
InkEdit Members
Microsoft.Ink Namespace
Cursor