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 相關聯之自訂辨識器的識別項。
備註
如果要從資料 Proxy 建立 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