ContextNodeType.AnalysisHint 欄位
表示節點型別,這個節點型別可提供區域內容資訊給 InkAnalyzer,藉此改善分析結果。
命名空間: System.Windows.Ink
組件: IAWinFX (在 IAWinFX.dll 中)
語法
'宣告
Public Shared ReadOnly AnalysisHint As Guid
'用途
Dim value As Guid
value = ContextNodeType.AnalysisHint
public static readonly Guid AnalysisHint
public:
static initonly Guid AnalysisHint
public static final Guid AnalysisHint
public static final var AnalysisHint : Guid
備註
這個 ContextNodeType 欄位的 [T:System.][Guid] 值是 b3e85327-34d8-4a53-9bed-c4aa612428d3。
範例
下列範例會在 InkAnalyzer (名為 theInkAnalyzerWithHint) 的節點樹狀目錄中尋找所有的 WritingRegionNode 物件。接著再將連結至 Factoid 值為 "IS_DATE_FULLDATE" 之 AnalysisHintNode 的節點放入名為 writingRegionsWithFactoids 的 ContextNodeCollection 中。
Dim writingRegionsWithFactoids As New ContextNodeCollection(Me.theInkAnalyzerWithHint)
Dim allWritingRegions As ContextNodeCollection = Me.theInkAnalyzerWithHint.FindNodesOfType(ContextNodeType.WritingRegion)
Dim writingRegion As WritingRegionNode
For Each writingRegion In allWritingRegions
' See if they are linked to any factoid
Dim link As ContextLink
For Each link In writingRegion.Links
If link.SourceNode.Type = ContextNodeType.AnalysisHint Then
Dim hint As AnalysisHintNode = CType(link.SourceNode, AnalysisHintNode)
If hint.Factoid = "IS_DATE_FULLDATE" Then
writingRegionsWithFactoids.Add(writingRegion)
End If
End If
Next link
Next writingRegion
ContextNodeCollection writingRegionsWithFactoids =
new ContextNodeCollection(this.theInkAnalyzerWithHint);
ContextNodeCollection allWritingRegions =
this.theInkAnalyzerWithHint.FindNodesOfType(ContextNodeType.WritingRegion);
foreach (WritingRegionNode writingRegion in allWritingRegions)
{
// See if they are linked to any factoid
foreach (ContextLink link in writingRegion.Links)
{
if (link.SourceNode.Type == ContextNodeType.AnalysisHint)
{
AnalysisHintNode hint = (AnalysisHintNode)link.SourceNode;
if (hint.Factoid == "IS_DATE_FULLDATE")
{
writingRegionsWithFactoids.Add(writingRegion);
}
}
}
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0