共用方式為


Cursors.Count Property

Cursors.Count Property

Gets the number of Cursors objects contained in the Cursors 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 Cursor objects contained in the Cursors collection.

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

Examples

[C#]

This C# example gets the number of Cursor objects for the Cursors collection of an InkCollector, theInkCollector.

Cursors theCursors = theInkCollector.Cursors;
int theCount = theCursors.Count;

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example gets the number of Cursor objects for the Cursors collection of an InkCollector, theInkCollector.

Dim theCursors As Cursors = theInkCollector.Cursors
Dim theCount As Integer = theCursors.Count

See Also