InkAnalyzerBase.CreateCustomRecognizer - метод
Обновлен: Ноябрь 2007
Creates a new custom recognizer node for the analyzer.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public Function CreateCustomRecognizer ( _
inkRecognizerId As Guid _
) As ContextNodeBase
'Применение
Dim instance As InkAnalyzerBase
Dim inkRecognizerId As Guid
Dim returnValue As ContextNodeBase
returnValue = instance.CreateCustomRecognizer(inkRecognizerId)
public ContextNodeBase CreateCustomRecognizer(
Guid inkRecognizerId
)
public:
ContextNodeBase^ CreateCustomRecognizer(
Guid inkRecognizerId
)
public ContextNodeBase CreateCustomRecognizer(
Guid inkRecognizerId
)
public function CreateCustomRecognizer(
inkRecognizerId : Guid
) : ContextNodeBase
Параметры
- inkRecognizerId
Тип: System.Guid
The globally unique identifier (GUID) of the InkRecognizerBase for which to create a node.
Возвращаемое значение
Тип: System.Windows.Ink.AnalysisCore.ContextNodeBase
Заметки
This method creates a new ContextNodeBase with a Type property value of CustomRecognizer(). It then adds the new custom recognizer node to the SubNodes collection of the ink analyzer's RootNode.
Примеры
The following example creates a custom recognizer node for the InkAnalyzerBase, theInkAnalyzerBase. It creates the node only if the analyzer's GetInkRecognizersByPriority method returns an InkRecognizerBaseCollection that contains a Japanese ink recognizer
' Add a custom recognizer node for Japanese, which has a locale
' identifier of 0x0011.
Dim theInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
theInkAnalyzerBase.GetInkRecognizersByPriority().GetPriorityInkRecognizer(&H11)
Dim theCustomRecognizerNode As System.Windows.Ink.AnalysisCore.ContextNodeBase = Nothing
If Nothing IsNot theInkRecognizer Then
theCustomRecognizerNode = _
theInkAnalyzerBase.CreateCustomRecognizer(theInkRecognizer.Guid)
End If
// Add a custom recognizer node for Japanese, which has a locale
// identifier of 0x0011.
System.Windows.Ink.AnalysisCore.InkRecognizerBase theInkRecognizer =
theInkAnalyzerBase.GetInkRecognizersByPriority().GetPriorityInkRecognizer(0x0011);
System.Windows.Ink.AnalysisCore.ContextNodeBase theCustomRecognizerNode = null;
if (null != theInkRecognizer)
{
theCustomRecognizerNode =
theInkAnalyzerBase.CreateCustomRecognizer(theInkRecognizer.Guid);
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink.AnalysisCore - пространство имен
System.Windows.Ink.AnalysisCore.ContextNodeBase