Поделиться через


ContextLink.DestinationNode - свойство

Обновлен: Ноябрь 2007

Gets the ContextNode object that is the destination of the current ContextLink object.

Пространство имен:  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
The ContextNode object that represents the destination of this ContextLink object.

Примеры

The following example finds all the nodes that are linked to the ContextNode named selectedNode. If selectedNode is not a destination node, the destination node is added to an ArrayList named destinationNodes. If selectedNode is not the source node, it is added to an ArrayList named sourceNodes.

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