共用方式為


ContextLinkBase.DestinationNode 屬性

取得 ContextNodeBase 物件,這個物件是這個 ContextLinkBase 物件的目的端。

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

語法

'宣告
Public ReadOnly Property DestinationNode As ContextNodeBase
'用途
Dim instance As ContextLinkBase
Dim value As ContextNodeBase

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

屬性值

型別:System.Windows.Ink.AnalysisCore.ContextNodeBase
ContextNodeBase 物件,這個物件是這個 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

請參閱

參考

ContextLinkBase 類別

ContextLinkBase 成員

System.Windows.Ink.AnalysisCore 命名空間

ContextLinkBase.SourceNode