Export (0) Print
Expand All

UnclassifiedInkNode Class

Represents a ContextNode for a collection of strokes that have not yet been classified.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

public sealed class UnclassifiedInkNode : ContextNode

Any stroke that is added to the InkAnalyzer by using the InkAnalyzer.AddStroke or InkAnalyzer.AddStrokes method is automatically associated with an UnclassifiedInkNode object.

If InkAnalyzer.AddStroke or InkAnalyzer.AddStrokes is used to add the strokes, then one UnclassifiedInkNode object for each language identifier appears under the RootNode.

After InkAnalyzer.Analyze is called, the UnclassifiedInkNode is removed from the tree. If InkAnalyzer.BackgroundAnalyze is called, then after ink analysis is finished, all UnclassifiedInkNode objects that existed at the time BackgroundAnalyze was called will be removed. The only strokes that would not be removed are new strokes that have been added to the UnclassifiedInkNode and have not yet been analyzed.

An UnclassifiedInkNode cannot have any children.

In the following example, before ink analysis is performed by an InkAnalyzer, theInkAnalyzer, the culture identifier of all unanalyzed strokes is set to languageId, an integer. This will force all these strokes to be analyzed with that language. This is accomplished by finding all the UnclassifiedInkNode objects in the context tree and setting the language identifiers of their strokes.

// Set all unanalyzed strokes to have the language specified by languageId
ContextNodeCollection unclassifiedNodes =
    theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.UnclassifiedInk);
foreach (UnclassifiedInkNode unclassifiedNode in unclassifiedNodes)
{
    // Set the strokes' language identifier
    theInkAnalyzer.SetStrokesLanguageId(unclassifiedNode.Strokes, languageId);
}

// Perform ink analysis...

System.Object
  Microsoft.Ink.ContextNode
    Microsoft.Ink.UnclassifiedInkNode

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft