CustomRecognizerNode.InkRecognizerId Property
Gets and sets the identifier for the custom recognizer with which the CustomRecognizerNode is associated.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.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 with which the CustomRecognizerNode is associated.
Remarks
If you are creating a CustomRecognizerNode from data proxy, use the InkRecognizerId property to set the identifier. Otherwise, use InkAnalyzer.CreateCustomRecognizer.
Examples
The following example searches the context node tree of an InkAnalyzer named theInkAnalyzer, to find all of the CustomRecognizerNode objects that have a Guid named targetId.
Dim allCustomRecognizers As ContextNodeCollection = theInkAnalyzer.FindNodesOfType(ContextNodeType.CustomRecognizer)
Dim matchingRecognizers As 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(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 XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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