次の方法で共有


CustomStrokes.Count プロパティ

CustomStrokes コレクションに格納されている Strokes オブジェクトの数を取得します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public ReadOnly Property Count As Integer
'使用
Dim instance As CustomStrokes
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
CustomStrokes コレクションに格納されている Strokes オブジェクトの数。

実装

ICollection.Count

この C# の例では、Ink オブジェクト theInk の CustomStrokes コレクション内にある Strokes オブジェクトの数を取得します。

CustomStrokes theCustomStrokes = theInk.CustomStrokes;
int theCount = theCustomStrokes.Count;

この Microsoft® Visual Basic® .NET の例では、Ink オブジェクト theInk の CustomStrokes コレクション内にある Strokes オブジェクトの数を検出します。

Dim theCustomStrokes As CustomStrokes = theInk.CustomStrokes
Dim theCount As Integer = theCustomStrokes.Count

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

CustomStrokes クラス

CustomStrokes メンバ

Microsoft.Ink 名前空間

Strokes

その他の技術情報

System.Collections.ICollection