다음을 통해 공유


ContextNodeBase.Links 속성

업데이트: 2007년 11월

다른 ContextNodeBase 개체 간의 관계를 나타내는 ContextLinkBase 개체의 컬렉션을 가져옵니다.

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

구문

‘선언
Public ReadOnly Property Links As ContextLinkBaseCollection
‘사용 방법
Dim instance As ContextNodeBase
Dim value As ContextLinkBaseCollection

value = instance.Links
public ContextLinkBaseCollection Links { get; }
public:
property ContextLinkBaseCollection^ Links {
    ContextLinkBaseCollection^ get ();
}
/** @property */
public ContextLinkBaseCollection get_Links()
public function get Links () : ContextLinkBaseCollection

속성 값

형식: System.Windows.Ink.AnalysisCore.ContextLinkBaseCollection
다른 ContextNodeBase 개체 간의 관계를 나타내는 ContextLinkBase 개체의 컬렉션입니다.

설명

링크로 설명된 다양한 관계에 대한 자세한 내용은 ContextLinkBase 클래스를 참조하십시오.

예제

다음 예제에서는 이름이 selectedNode인 ContextNodeBase 노드에 링크된 모든 노드를 찾습니다. selectedNode가 대상 노드가 아닌 경우 destinationNodes라는 ArrayList에 대상 노드가 추가됩니다. selectedNode가 소스 노드가 아닌 경우 sourceNodes라는 ArrayList에 소스 노드가 추가됩니다.

Dim destinationNodes As ArrayList = New ArrayList()
Dim sourceNodes As ArrayList = New ArrayList()

' Find all the nodes that link to the currently selected node.
For Each link As Microsoft.Ink.ContextLink In selectedNode.Links
    If link.DestinationNode <> selectedNode Then
        destinationNodes.Add(link.DestinationNode)
    End If

    If link.SourceNode <> selectedNode Then
        sourceNodes.Add(link.SourceNode)
    End If
Next
ArrayList destinationNodes = new ArrayList();
ArrayList sourceNodes = new ArrayList();

// Find all the nodes that link to the currently selected node.
foreach (Microsoft.Ink.ContextLink link in selectedNode.Links)
{
    if (link.DestinationNode != selectedNode)
    {
        destinationNodes.Add(link.DestinationNode);
    }

    if (link.SourceNode != selectedNode)
    {
        sourceNodes.Add(link.SourceNode);
    }

}

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

ContextNodeBase 클래스

ContextNodeBase 멤버

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

System.Windows.Ink.AnalysisCore.ContextLinkBase