この ContextLink として設定されているリンクの型を取得します。
名前空間 : 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
この ContextLink として設定されているリンクの型。
例
次の例では、リンク方向が不特定であるという条件で、ContextNode ノード selectedNode にリンクされているすべてのノードを検索します。
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