次の方法で共有


CursorButtons.Count プロパティ

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 オブジェクトの数。

実装

ICollection.Count

この C# の例では、Cursor、theCursor の CursorButtons コレクション theCursorButtons の CursorButton オブジェクトの数を検出します。

CursorButtons theCursorButtons = theCursor.Buttons;
int theCount = theCursorButtons.Count;

この Microsoft® Visual Basic® .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

参照

参照

CursorButtons クラス

CursorButtons メンバ

Microsoft.Ink 名前空間

CursorButton

その他の技術情報

System.Collections.ICollection