Share via


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 ();
}
public function get Id () : int

Property Value

Type: System.Int32
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.

Examples

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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Cursor Class

Cursor Members

Microsoft.Ink Namespace