Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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(
int *index);
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
index System.Int32. [in] The zero-based index of the CursorButton object to get.
Exceptions
ArgumentOutOfRangeException
: The specified identifier was not found.
Remarks
An ArgumentOutOfRangeException
is thrown if the index 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 the first CursorButton object from the CursorButtons collection of a Cursor, theCursor.
CursorButton firstButton = theCursor.Buttons[0];
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example gets the first CursorButton object from the CursorButtons collection of a Cursor, theCursor.
Dim firstButton As CursorButton = theCursor.Buttons.Item(0)