Compartir a través de


Cursor.Id Property

Gets the identifier of the Cursor object.

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

Syntax

'Declaration
Public ReadOnly Property Id As Integer
'Usage
Dim instance As Cursor
Dim value As Integer

value = instance.Id
public int Id { get; }
public:
property int Id {
    int get ();
}
/** @property */
public int get_Id ()
public function get Id () : int
Not applicable.

Property Value

The Cursor object's identifier.

Remarks

A Cursor object's identifier never changes.

Note

This function can be re-entered if called within certain message handlers, causing unexpected results. Take care to avoid a reentrant call when handling any of the following messages: WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_PAINT; WM_SYSCOMMAND if wParam is set to SC_HOTKEY or SC_TASKLIST; and WM_SYSKEYDOWN (when processing Alt-Tab or Alt-Esc key combinations). This is an issue with single-threaded apartment model applications.

Example

This C# example gets the identifier of a Cursor, theCursor.

int theCursorID = theCursor.Id;

This Microsoft® Visual Basic® .NET example gets the identifier of a Cursor, theCursor.

Dim theCursorID As Integer = theCursor.Id

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

Cursor Class
Cursor Members
Microsoft.Ink Namespace