Share via


ContextLinkCollection.Add Method

Adds a new ContextLink object to the ContextLinkCollection, indicating the destination node and its direction.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Function Add ( _
    destinationNode As ContextNode, _
    linkDirection As ContextLinkDirection _
) As ContextLink
'Usage
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 function Add(
    destinationNode : ContextNode, 
    linkDirection : ContextLinkDirection
) : ContextLink

Parameters

Return Value

Type: System.Windows.Ink.ContextLink
The new ContextLink object.

Remarks

A ContextLink object is also added to the DestinationNode object's Links property.

Examples

The following example adds a link between an InkDrawingNode object named drawing, and an InkWordNode object named word.

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

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextLinkCollection Class

ContextLinkCollection Members

System.Windows.Ink Namespace