InkAnalyzer.CreateCustomRecognizer - метод
Обновлен: Ноябрь 2007
Creates a new CustomRecognizerNode for the analyzer.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.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) of the InkRecognizer for which to create a node.
Возвращаемое значение
Тип: Microsoft.Ink.CustomRecognizerNode
The new CustomRecognizerNode.
Заметки
The CustomRecognizerNode object is created as a direct child of the RootNode.
Примеры
The following example takes the System.Guid for a custom recognizer, customRecognizerId, and creates a CustomRecognizerNode with it for an InkAnalyzer, theInkAnalyzer. Strokes are then added from a Strokes collection, strokesForCustomAnalysis. Then Analyze is called and the recognized string is put into a TextBox, theResultsTextBox.
Dim customRecognizer As CustomRecognizerNode = _
theInkAnalyzer.CreateCustomRecognizer(customRecognizerId)
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer)
Dim theStatus As Microsoft.Ink.AnalysisStatus = theInkAnalyzer.Analyze()
theResultsTextBox.Text = customRecognizer.GetRecognizedString()
CustomRecognizerNode customRecognizer =
theInkAnalyzer.CreateCustomRecognizer(customRecognizerId);
theInkAnalyzer.AddStrokesToCustomRecognizer(strokesForCustomAnalysis, customRecognizer);
Microsoft.Ink.AnalysisStatus theStatus = theInkAnalyzer.Analyze();
theResultsTextBox.Text = customRecognizer.GetRecognizedString();
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
Microsoft.Ink - пространство имен