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(R) Visual Basic(R) .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