Export (0) Print
Expand All

ContextNodeType.AnalysisHint Field

Represents the type of node that provides additional context information for a region to the InkAnalyzer to improve analysis results.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)

public static readonly Guid AnalysisHint
public static final Guid AnalysisHint
public static final var AnalysisHint : Guid
Not applicable.

The Guid value for this ContextNodeType field is b3e85327-34d8-4a53-9bed-c4aa612428d3.

The following example finds all WritingRegionNode objects in the node tree of an InkAnalyzer, theInkAnalyzerWithHint. The example then puts those that are linked to an AnalysisHintNode with a Factoid of "IS_DATE_FULLDATE" into a ContextNodeCollection, writingRegionsWithFactoids.

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 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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft