다음을 통해 공유


InkAnalyzerBase.RootNode 속성

업데이트: 2007년 11월

잉크 분석기의 컨텍스트 노드 트리에서 루트 ContextNodeBase를 가져옵니다.

네임스페이스:  System.Windows.Ink.AnalysisCore
어셈블리:  IACore(IACore.dll)

구문

‘선언
Public ReadOnly Property RootNode As ContextNodeBase
‘사용 방법
Dim instance As InkAnalyzerBase
Dim value As ContextNodeBase

value = instance.RootNode
public ContextNodeBase RootNode { get; }
public:
property ContextNodeBase^ RootNode {
    ContextNodeBase^ get ();
}
/** @property */
public ContextNodeBase get_RootNode()
public function get RootNode () : ContextNodeBase

속성 값

형식: System.Windows.Ink.AnalysisCore.ContextNodeBase
잉크 분석기의 컨텍스트 노드 트리에서 루트 ContextNodeBase입니다.

설명

InkAnalyzerBaseContextNodeBase 개체의 트리를 유지 관리합니다. 이 개체에는 분석할 입력과 분석 결과가 모두 들어 있습니다. 처음에 잉크 분석기에 스트로크를 추가할 때 분석기는 ContextNodeTypeBase.UnclassifiedInkType 속성 값을 갖는 ContextNodeBase에 스트로크를 할당합니다. 스트로크가 분석된 후에는 InkAnalyzerBase가 스트로크를 트리의 적절한 ContextNodeBase 개체에 할당합니다.

예제

이 예제에서는 InkAnalyzerBase인 theInkAnalyzerBase에 대한 루트 노드의 자식 노드를 반복합니다. 자식 노드가 분류되지 않은 잉크 노드이면 해당 노드가 컬렉션에 추가됩니다.

' Iterate over the subnodes of the analyzer's root node and
' collect all unclassified ink nodes.
Dim theUnclassifiedInkNodes As New System.Collections.ArrayList()
Dim theNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each theNode In theInkAnalyzerBase.RootNode.SubNodes
    If System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.UnclassifiedInk = theNode.Type Then
        theUnclassifiedInkNodes.Add(theNode)
    End If
Next theNode
// Iterate over the subnodes of the analyzer's root node and
// collect all unclassified ink nodes.
System.Collections.ArrayList theUnclassifiedInkNodes =
    new System.Collections.ArrayList();
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase theNode
    in theInkAnalyzerBase.RootNode.SubNodes)
{
    if (System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.UnclassifiedInk == theNode.Type)
    {
        theUnclassifiedInkNodes.Add(theNode);
    }
}

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

InkAnalyzerBase 클래스

InkAnalyzerBase 멤버

System.Windows.Ink.AnalysisCore 네임스페이스