RecognitionProperty - класс
Обновлен: Ноябрь 2007
Defines globally unique identifiers (GUIDs) for properties that a InkRecognizerBase might support for recognition results.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public NotInheritable Class RecognitionProperty
'Применение
Dim instance As RecognitionProperty
public sealed class RecognitionProperty
public ref class RecognitionProperty sealed
public final class RecognitionProperty
public final class RecognitionProperty
Заметки
These GUIDs are available as read-only fields of this object. Use the InkRecognizerBase.GetSupportedProperties method to determine which properties are supported by a InkRecognizerBase.
Use these GUIDs to access properties of a RecognitionAlternate object by calling the GetPropertyValue method.
Примеры
The following example demonstrates the RecognitionProperty class.
' Flags to hold capabilities
Dim hasConfidenceLevel As Boolean = False
Dim hasHotPoint As Boolean = False
Dim hasLineMetrics As Boolean = False
Dim hasLineNumber As Boolean = False
Dim hasMaximumStrokeCount As Boolean = False
Dim hasPointsPerInch As Boolean = False
Dim hasSegmentation As Boolean = False
Dim myInkRecognizerCapabilityGuids() As Guid = myInkRecognizer.GetSupportedProperties()
Dim myTempGuid As Guid = Nothing
Dim i As Integer = 0
While i < myInkRecognizerCapabilityGuids.Length
myTempGuid = myInkRecognizerCapabilityGuids(i)
If myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.ConfidenceLevel Then
hasConfidenceLevel = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.HotPoint Then
hasHotPoint = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.LineMetrics Then
hasLineMetrics = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.LineNumber Then
hasLineNumber = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.MaximumStrokeCount Then
hasMaximumStrokeCount = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.PointsPerInch Then
hasPointsPerInch = True
ElseIf myTempGuid = System.Windows.Ink.AnalysisCore.RecognitionProperty.Segmentation Then
hasSegmentation = True
End If
i = i + 1
End While
// Flags to hold capabilities
bool
hasConfidenceLevel = false,
hasHotPoint = false,
hasLineMetrics = false,
hasLineNumber = false,
hasMaximumStrokeCount = false,
hasPointsPerInch = false,
hasSegmentation = false;
Guid[] myInkRecognizerCapabilityGuids = myInkRecognizer.GetSupportedProperties();
Guid myTempGuid;
for (int i = 0; i < myInkRecognizerCapabilityGuids.Length; i++)
{
myTempGuid = myInkRecognizerCapabilityGuids[i];
if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.ConfidenceLevel)
{
hasConfidenceLevel = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.HotPoint)
{
hasHotPoint = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineMetrics)
{
hasLineMetrics = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineNumber)
{
hasLineNumber = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.MaximumStrokeCount)
{
hasMaximumStrokeCount = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.PointsPerInch)
{
hasPointsPerInch = true;
}
else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.Segmentation)
{
hasSegmentation = true;
}
}
Иерархия наследования
System.Object
System.Windows.Ink.AnalysisCore.RecognitionProperty
Потокобезопасность
Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink.AnalysisCore - пространство имен