次の方法で共有


ContextLinkCollection.Add メソッド

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

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.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

パラメータ

戻り値

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

解説

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

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

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

プラットフォーム

Windows Vista

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

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextLinkCollection クラス

ContextLinkCollection メンバ

System.Windows.Ink 名前空間