次の方法で共有


InkRecognizerCollection.Count プロパティ

コレクション内の要素の数を取得します。

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

構文

'宣言
Public ReadOnly Property Count As Integer
'使用
Dim instance As InkRecognizerCollection
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
コレクション内の要素の数。

実装

ICollection.Count

次の例では、コレクションが空ではない場合、InkRecognizerCollection、theInkRecognizerCollection 内の最初の認識エンジンを取得します。この例では、コレクションが同期されているかどうかも確認します。

' Create a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As Microsoft.Ink.InkRecognizerCollection _
    = theInkAnalyzer.GetInkRecognizersByPriority()

' Check if there are recognizers in the collection.
If (0 < theInkRecognizerCollection.Count) Then
    ' Get the first recognizer in the collection.
    Dim theFirstInkRecognizer As Microsoft.Ink.InkRecognizer = _
        theInkRecognizerCollection.Item(0)

    ' Check if the recognizers collection is synchronized.
    If (theInkRecognizerCollection.IsSynchronized) Then
        ' Insert code here.
    End If
End If
            // Create a collection of the recognizers installed on this Tablet PC.
            Microsoft.Ink.InkRecognizerCollection theInkRecognizerCollection =
                theInkAnalyzer.GetInkRecognizersByPriority();

            // Check if there are recognizers in the collection.
            if (0 < theInkRecognizerCollection.Count)
            {
                // Get the first recognizer in the collection.
                Microsoft.Ink.InkRecognizer theFirstInkRecognizer =
                    theInkRecognizerCollection[0];

                // Insert code here.
            }

            // Check if the recognizers collection is synchronized.
            if (theInkRecognizerCollection.IsSynchronized)
            {
                // Insert code here.
            }

プラットフォーム

Windows Vista

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

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkRecognizerCollection クラス

InkRecognizerCollection メンバ

Microsoft.Ink 名前空間