CustomRecognizerNode.InkRecognizerId 属性

获取和设置此 CustomRecognizerNode 的关联自定义识别器的标识符。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)

语法

声明
Public Property InkRecognizerId As Guid
用法
Dim instance As CustomRecognizerNode
Dim value As Guid

value = instance.InkRecognizerId

instance.InkRecognizerId = value
public Guid InkRecognizerId { get; set; }
public:
property Guid InkRecognizerId {
    Guid get ();
    void set (Guid value);
}
/** @property */
public Guid get_InkRecognizerId()
/** @property */
public  void set_InkRecognizerId(Guid value)
public function get InkRecognizerId () : Guid
public function set InkRecognizerId (value : Guid)

属性值

类型:System.Guid
CustomRecognizerNode 的关联自定义识别器的标识符。

备注

若要从数据代理创建 CustomRecognizerNode,请使用此属性设置标识符。否则,请使用 InkAnalyzer.CreateCustomRecognizer

示例

下面的示例搜索 InkAnalyzer, theInkAnalyzer 的上下文节点树,以查找所有具有 Guid (targetId) 的 CustomRecognizerNode 对象。

Dim allCustomRecognizers As ContextNodeCollection = _
    theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.CustomRecognizer)
Dim matchingRecognizers As ContextNodeCollection = _
    New ContextNodeCollection(theInkAnalyzer)
Dim customRecognizer As CustomRecognizerNode
For Each customRecognizer In allCustomRecognizers
    If customRecognizer.InkRecognizerId = targetId Then
        matchingRecognizers.Add(customRecognizer)
    End If
Next customRecognizer
ContextNodeCollection allCustomRecognizers =
    theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.CustomRecognizer);
ContextNodeCollection matchingRecognizers = new ContextNodeCollection(theInkAnalyzer);
foreach (CustomRecognizerNode customRecognizer in allCustomRecognizers)
{
    if (customRecognizer.InkRecognizerId == targetId)
    {
        matchingRecognizers.Add(customRecognizer);
    }
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

CustomRecognizerNode 类

CustomRecognizerNode 成员

Microsoft.Ink 命名空间

InkRecognizer.Guid