CursorButtons.Count Property
CursorButtons.Count Property |
Gets the number of CursorButton objects contained in the CursorButtons collection.
Definition
Visual Basic .NET Public ReadOnly Property Count As Integer C# public int Count { get; } Managed C++ public: __property int* get_Count();
Property Value
System.Int32. The number of CursorButton objects contained in the CursorButtons collection.
This property is read-only. This property has no default value.
Examples
[C#]
This C# example finds the number of CursorButton objects for the CursorButtons collection, theCursorButtons, of a Cursor, theCursor.
CursorButtons theCursorButtons = theCursor.Buttons; int theCount = theCursorButtons.Count;
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example finds the number of CursorButton objects for the CursorButtons collection, theCursorButtons, of a Cursor, theCursor.
Dim theCursorButtons As CursorButtons = theCursor.Buttons Dim theCount As Integer = theCursorButtons.Count
See Also