Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

ContextNode.Links-Eigenschaft

Gets a collection of ContextLink objects that represent relationships to other ContextNode objects.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public ContextLinkCollection Links { get; }
/** @property */
public ContextLinkCollection get_Links ()

public function get Links () : ContextLinkCollection

Nicht zutreffend.

Eigenschaftenwert

The collection of ContextLink objects that represent relationships to other ContextNode objects.

See the ContextLink class for more information about what kinds of relationships are described by links.

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

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 XP Media Center Edition

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen: