ContextLink.LinkDirection - свойство
Обновлен: Ноябрь 2007
Gets the type of link that this ContextLink is set as.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public ReadOnly Property LinkDirection As ContextLinkDirection
'Применение
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
Значение свойства
Тип: Microsoft.Ink.ContextLinkDirection
The type of link that this ContextLink is set as.
Примеры
The following example finds all the nodes that are linked to the ContextNode node, selectedNode if the link direction is non-specfic.
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);
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0