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)
XML Namespace: https://schemas.microsoft.com/winfx/2006/xaml/presentation
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);
}
/** @property */
public Guid get_InkRecognizerId ()
/** @property */
public void set_InkRecognizerId (Guid value)
public function get InkRecognizerId () : Guid
public function set InkRecognizerId (value : Guid)
Not applicable.
Property Value
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.
Example
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(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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
CustomRecognizerNode Class
CustomRecognizerNode Members
System.Windows.Ink Namespace
InkRecognizer.Guid