Share via


CursorButtons.Item Property (Guid)

Gets the CursorButton object with the specified globally unique identifier (GUID) within the CursorButtons collection.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    id As Guid _
) As CursorButton
'Usage
Dim instance As CursorButtons 
Dim id As Guid 
Dim value As CursorButton 

value = instance.Item(id)
public CursorButton this[
    Guid id
] { get; }
public:
property CursorButton^ Item[Guid id] {
    CursorButton^ get (Guid id);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.Ink.CursorButton
The specified CursorButton object within the CursorButtons collection.

Remarks

An System.ArgumentException is thrown if the id does not match an existing member of the CursorButtons collection.

Examples

This C# example gets a CursorButton object from the CursorButtons collection of a Cursor, theCursor, by using a Guid, cursorButtonGuid.

CursorButton theCursorButton = theCursor.Buttons[cursorButtonGuid];

This Microsoft® Visual Basic® .NET example gets the an CursorButton object from the CursorButtons collection of a Cursor, theCursor, by using a Guid, cursorButtonGuid.

Dim theCursorButton As CursorButton = theCursor.Buttons.Item(cursorButtonGuid)

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

CursorButtons Class

CursorButtons Members

Item Overload

Microsoft.Ink Namespace