InkRecognizerCollection.Count - свойство
Обновлен: Ноябрь 2007
Gets the number of elements in the collection.
Пространство имен: System.Windows.Ink
Сборка: IAWinFX (в IAWinFX.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
The number of elements in the collection.
Реализации
Примеры
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