다음을 통해 공유


CursorButtons.Item Property

CursorButtons.Item Property

Gets the CursorButton object at the specified index within the CursorButtons collection.

Definition

Visual Basic .NET Public ReadOnly Property Item As CursorButton
C# public CursorButton Item { get; }
Managed C++ public: __property CursorButton* get_Item(
Guid *id);

Property Value

Microsoft.Ink.CursorButton. The CursorButton object at the specified index within the CursorButtons collection.

This property is read-only. This property has no default value.

Parameters

id System.Guid. [in] The GUID identifier of the CursorButton object to get.

Remarks

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

Note: In C#, use the collection's indexer as shown in the following example, instead of using the collection's Item property.

Examples

[C#]

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

[Visual Basic .NET]

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)