共用方式為


Cursors.Count 屬性

取得 Cursors 集合內含的 Cursors 物件數目。

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink (在 Microsoft.Ink.dll 中)

語法

'宣告
Public ReadOnly Property Count As Integer
'用途
Dim instance As Cursors
Dim value As Integer

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
/** @property */
public final int get_Count()
public final function get Count () : int

屬性值

型別:System.Int32
Cursors 集合內含的 Cursor 物件數目。

實作

ICollection.Count

範例

這個 C# 範例會取得 InkCollector(theInkCollector) 之 Cursors 集合的 Cursor 物件數目。

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

這個 Microsoft® Visual Basic® .NET 範例會取得 InkCollector(theInkCollector) 之 Cursors 集合的 Cursor 物件數目。

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

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

Cursors 類別

Cursors 成員

Microsoft.Ink 命名空間

Cursor

其他資源

System.Collections.ICollection