CustomRecognizerNode.InkRecognizerId Property
Gets and sets the identifier for the custom recognizer that this CustomRecognizerNode is associated with.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Property InkRecognizerId As Guid
'Usage
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);
}
public function get InkRecognizerId () : Guid
public function set InkRecognizerId (value : Guid)
Property Value
Type: System.Guid
The identifier for the custom recognizer that this CustomRecognizerNode is associated with.
Remarks
If you are creating a CustomRecognizerNode from data proxy, use this property to set the identifier. Otherwise, use InkAnalyzer.CreateCustomRecognizer.
Examples
The following example searches the context node tree of an InkAnalyzer, theInkAnalyzer, to find all of the CustomRecognizerNode objects that have a Guid, targetId.
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);
}
}
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0