次の方法で共有


InkRecognizerCollection.Item プロパティ

指定したインデックス位置にある要素を取得します。

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

構文

'宣言
Public ReadOnly Property Item ( _
    index As Integer _
) As InkRecognizer
'使用
Dim instance As InkRecognizerCollection
Dim index As Integer
Dim value As InkRecognizer

value = instance.Item(index)
public InkRecognizer Item[
    int index
] { get; }
public:
property InkRecognizer^ Item[int index] {
    InkRecognizer^ get (int index);
}
/** @property */
public InkRecognizer get_Item(
    int index
)
JScript では、インデックス付きプロパティはサポートされません。

パラメータ

  • index
    型 : System.Int32
    取得する要素の 0 から始まるインデックス。

プロパティ値

型 : System.Windows.Ink.InkRecognizer
指定したインデックスにある要素。

解説

メモ   C# では、C# の例に示すように、コレクションの Item プロパティではなくコレクションのインデクサを使用します。

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

' Get a collection of the recognizers installed on this Tablet PC.
Dim theInkRecognizerCollection As 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 InkRecognizer = theInkRecognizerCollection(0)

    ' Insert code here.

End If

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

// Check if there are recognizers in the collection.
if (0 < theInkRecognizerCollection.Count)
{
    // Get the first recognizer in the collection.
    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 メンバ

System.Windows.Ink 名前空間