次の方法で共有


ContextLink.DestinationNode プロパティ

現在の ContextLink オブジェクトのリンク先の ContextNode オブジェクトを取得します。

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.dll 内)

構文

'宣言
Public ReadOnly Property DestinationNode As ContextNode
'使用
Dim instance As ContextLink
Dim value As ContextNode

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

プロパティ値

型 : System.Windows.Ink.ContextNode
この ContextLink オブジェクトのリンク先を表す ContextNode オブジェクト。

次の例では、selectedNode という名前の ContextNode にリンクされているすべてのノードを検索します。selectedNode がリンク先ノードでない場合、リンク先ノードが destinationNodes という名前で ArrayList に追加されます。selectedNode がリンク元ノードでない場合、sourceNodes という名前の ArrayList に追加されます。

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

' Find all the nodes that link to the currently selected node.
Dim link As ContextLink
For Each link 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 link
ArrayList destinationNodes = new ArrayList();
ArrayList sourceNodes = new ArrayList();

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

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

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextLink クラス

ContextLink メンバ

System.Windows.Ink 名前空間

ContextLink.SourceNode