Поделиться через


InkRecognizerCollection.Item - свойство

Обновлен: Ноябрь 2007

Gets the element at the specified index.

Пространство имен:  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
    The zero-based index of the element to get.

Значение свойства

Тип: System.Windows.Ink.InkRecognizer
The element at the specified index.

Заметки

Note   In C#, use the collection's indexer as shown in the C# example, rather than the collection's Item property.

Примеры

The following example gets the first recognizer in the InkRecognizerCollection, theInkRecognizerCollection, if the collection is not empty. This example also checks whether the collection is synchronized.

' 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 - пространство имен