共用方式為


ContextNodeTypeBase.AnalysisHint 欄位

表示節點的型別,這個節點可提供區域的額外內容資訊,供 InkAnalyzerBase 用來改善分析結果。

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

'宣告
Public Shared ReadOnly AnalysisHint As Guid
'用途
Dim value As Guid

value = ContextNodeTypeBase.AnalysisHint
public static readonly Guid AnalysisHint
public:
static initonly Guid AnalysisHint
public static final Guid AnalysisHint
public static final var AnalysisHint : Guid

備註

這個 ContextNodeTypeBase 欄位的 Guid (英文) 值是 b3e85327-34d8-4a53-9bed-c4aa612428d3。

範例

下列範例會在 InkAnalyzerBase (theInkAnalyzerBaseWithHint) 的節點樹狀目錄中,尋找型別為 WritingRegion 的所有 ContextNodeTypeBase 物件。接著這個範例會將個人小檔案的值為 "IS_DATE_FULLDATE" 並且連結至提示節點的物件放入 ContextNodeBaseCollection (名為 writingRegionsWithFactoids)。

Dim writingRegionsWithFactoids As _
    New ContextNodeBaseCollection(Me.theInkAnalyzerWithHint)
Dim allWritingRegions As ContextNodeBaseCollection = _
    Me.theInkAnalyzerWithHint.FindNodesOfType( _
        ContextNodeTypeBase.WritingRegion)
Dim writingRegion As ContextNodeBase
For Each writingRegion In allWritingRegions
    ' See if they are linked to any factoid
    Dim link As ContextLinkBase
    For Each link In writingRegion.Links
        If link.SourceNode.Type = ContextNodeType.AnalysisHint And _
           link.SourceNode.ContainsPropertyData(PropertyGuidsForAnalysisHintsBase.Factoid) Then

            If CType(link.SourceNode.GetPropertyData(PropertyGuidsForAnalysisHintsBase.Factoid), String) _
                = "IS_DATE_FULLDATE" Then

                writingRegionsWithFactoids.Add(writingRegion)
            End If
        End If
    Next link
Next writingRegion
ContextNodeBaseCollection writingRegionsWithFactoids = 
    new ContextNodeBaseCollection(this.theInkAnalyzerBaseWithHint);
ContextNodeBaseCollection allWritingRegions =
    this.theInkAnalyzerBaseWithHint.FindNodesOfType(
        System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.WritingRegion);
foreach (ContextNodeBase writingRegion in allWritingRegions)
{
    // See if they are linked to any factoid
    foreach (ContextLinkBase link in writingRegion.Links)
    {
        if (link.SourceNode.Type == ContextNodeTypeBase.AnalysisHint &&
            link.SourceNode.ContainsPropertyData(PropertyGuidsForAnalysisHintsBase.Factoid))
        {
            if ((string) link.SourceNode.GetPropertyData(PropertyGuidsForAnalysisHintsBase.Factoid)
                == "IS_DATE_FULLDATE")
            {
                writingRegionsWithFactoids.Add(writingRegion);
            }
        }
    }
}

平台

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

ContextNodeTypeBase 類別

ContextNodeTypeBase 成員

System.Windows.Ink.AnalysisCore 命名空間