次の方法で共有


ContextLinkCollection.Add メソッド

リンク先ノードとその方向を示す、新しい ContextLink オブジェクトを ContextLinkCollection に追加します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink.Analysis (Microsoft.Ink.Analysis.dll 内)

構文

'宣言
Public Function Add ( _
    destinationNode As ContextNode, _
    linkDirection As ContextLinkDirection _
) As ContextLink
'使用
Dim instance As ContextLinkCollection
Dim destinationNode As ContextNode
Dim linkDirection As ContextLinkDirection
Dim returnValue As ContextLink

returnValue = instance.Add(destinationNode, _
    linkDirection)
public ContextLink Add(
    ContextNode destinationNode,
    ContextLinkDirection linkDirection
)
public:
ContextLink^ Add(
    ContextNode^ destinationNode, 
    ContextLinkDirection linkDirection
)
public ContextLink Add(
    ContextNode destinationNode,
    ContextLinkDirection linkDirection
)
public function Add(
    destinationNode : ContextNode, 
    linkDirection : ContextLinkDirection
) : ContextLink

パラメータ

戻り値

型 : Microsoft.Ink.ContextLink
新しい ContextLink オブジェクト。

解説

このコレクションが関連付けられた ContextNode は、新しい ContextLink オブジェクト内では SourceNode となります。

ContextLink オブジェクトは、DestinationNode オブジェクトの Links プロパティにも追加されます。

次の例では、InkDrawingNode オブジェクト drawing と、InkWordNode オブジェクト word の間にリンクを追加します。

drawing.Links.Add(word, Microsoft.Ink.ContextLinkDirection.LinksWith)
drawing.Links.Add(word, Microsoft.Ink.ContextLinkDirection.LinksWith);

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextLinkCollection クラス

ContextLinkCollection メンバ

Microsoft.Ink 名前空間