获取 CursorButtons 集合中包含的 CursorButton 对象的数目。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public ReadOnly Property Count As Integer
用法
Dim instance As CursorButtons
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
CursorButtons 集合中包含的 CursorButton 对象的数目。
实现
示例
此 C# 示例查找 Cursor (theCursor) 的 CursorButtons 集合 theCursorButtons 中 CursorButton 对象的数目。
CursorButtons theCursorButtons = theCursor.Buttons;
int theCount = theCursorButtons.Count;
此 Microsoft(R) Visual Basic(R) .NET 示例查找 Cursor (theCursor) 的 CursorButtons 集合 theCursorButtons 中 CursorButton 对象的数目。
Dim theCursorButtons As CursorButtons = theCursor.Buttons
Dim theCount As Integer = theCursorButtons.Count
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0