InkAnalyzer.CreateCustomRecognizer - метод
Обновлен: Ноябрь 2007
Creates a new CustomRecognizerNode for the analyzer.
Пространство имен: System.Windows.Ink
Сборка: IAWinFX (в IAWinFX.dll)
Синтаксис
'Декларация
Public Function CreateCustomRecognizer ( _
inkRecognizerId As Guid _
) As CustomRecognizerNode
'Применение
Dim instance As InkAnalyzer
Dim inkRecognizerId As Guid
Dim returnValue As CustomRecognizerNode
returnValue = instance.CreateCustomRecognizer(inkRecognizerId)
public CustomRecognizerNode CreateCustomRecognizer(
Guid inkRecognizerId
)
public:
CustomRecognizerNode^ CreateCustomRecognizer(
Guid inkRecognizerId
)
public CustomRecognizerNode CreateCustomRecognizer(
Guid inkRecognizerId
)
public function CreateCustomRecognizer(
inkRecognizerId : Guid
) : CustomRecognizerNode
Параметры
- inkRecognizerId
Тип: System.Guid
The globally unique identifier (GUID) identifying the InkRecognizer for which a node is created.
Возвращаемое значение
Тип: System.Windows.Ink.CustomRecognizerNode
The new CustomRecognizerNode.
Заметки
The CustomRecognizerNode object is created as a direct child of the RootNode.
Примеры
The following example uses the Guid for a custom recognizer, customRecognizerId, and creates a CustomRecognizerNode for an InkAnalyzer named theInkAnalyzer. Strokes from a StrokeCollection named strokesForCustomAnalysis are then added. Then Analyze is called, and the recognized string is stored in TextBox, named theResultsTextBox.
Dim customRecognizer As CustomRecognizerNode = _
theInkAnalyzer.CreateCustomRecognizer(customRecognizerId)
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer)
Dim theStatus As AnalysisStatus = theInkAnalyzer.Analyze()
theResultsTextBox.Text = customRecognizer.GetRecognizedString()
CustomRecognizerNode customRecognizer =
theInkAnalyzer.CreateCustomRecognizer(customRecognizerId);
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer);
AnalysisStatus theStatus = theInkAnalyzer.Analyze();
theResultsTextBox.Text = customRecognizer.GetRecognizedString();
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink - пространство имен
System.Windows.Ink.CustomRecognizerNode
System.Windows.Ink.InkRecognizer
InkAnalyzerBaseInkRecognizersByPriority()