Compartir a través de


ContextLink.LinkDirection (Propiedad)

Actualización: noviembre 2007

Obtiene el tipo de vínculo que ContextLink tiene establecido.

Espacio de nombres:  Microsoft.Ink
Ensamblado:  Microsoft.Ink.Analysis (en Microsoft.Ink.Analysis.dll)

Sintaxis

'Declaración
Public ReadOnly Property LinkDirection As ContextLinkDirection
'Uso
Dim instance As ContextLink
Dim value As ContextLinkDirection

value = instance.LinkDirection
public ContextLinkDirection LinkDirection { get; }
public:
property ContextLinkDirection LinkDirection {
    ContextLinkDirection get ();
}
/** @property */
public ContextLinkDirection get_LinkDirection()
public function get LinkDirection () : ContextLinkDirection

Valor de propiedad

Tipo: Microsoft.Ink.ContextLinkDirection
Tipo de vínculo que ContextLink tiene establecido.

Ejemplos

En el ejemplo siguiente se buscan todos los nodos que están vinculados al nodo ContextNode, selectedNode si la dirección del vínculo es no específica.

Dim nonSpecificDirectionNodes As ArrayList = New ArrayList()
' Find all the nodes that link to the currently selected node
' in a non specific direction (ContextLinkDirection.LinksWith)
For Each link As Microsoft.Ink.ContextLink In selectedNode.Links

    If link.DestinationNode <> selectedNode And _
        ContextLinkDirection.LinksWith = link.LinkDirection Then
        nonSpecificDirectionNodes.Add(link.DestinationNode)
    End If

    If link.SourceNode <> selectedNode And _
        ContextLinkDirection.LinksWith = link.LinkDirection Then
        nonSpecificDirectionNodes.Add(link.DestinationNode)
    End If


Next
ArrayList nonSpecificDirectionNodes = new ArrayList();

// Find all the nodes that link to the currently selected node
// in a non specific direction (ContextLinkDirection.LinksWith)
foreach (Microsoft.Ink.ContextLink link in selectedNode.Links)
{
    if (link.DestinationNode != selectedNode &&
        ContextLinkDirection.LinksWith == link.LinkDirection)
    {
        nonSpecificDirectionNodes.Add(link.DestinationNode);
    }

    if (link.SourceNode != selectedNode &&
        ContextLinkDirection.LinksWith == link.LinkDirection)
    {
        nonSpecificDirectionNodes.Add(link.DestinationNode);
    }
}

Plataformas

Windows Vista

.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Información de versión

.NET Framework

Compatible con: 3.0

Vea también

Referencia

ContextLink (Clase)

ContextLink (Miembros)

Microsoft.Ink (Espacio de nombres)