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 ContextLink Add (
    ContextNode destinationNode, 
    ContextLinkDirection linkDirection
)
public function Add (
    destinationNode : ContextNode, 
    linkDirection : ContextLinkDirection
) : ContextLink
Not applicable.

Parameters

  • linkDirection
    The link direction.

Return Value

The new ContextLink object.

Remarks

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

Example

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

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

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextLinkCollection Class
ContextLinkCollection Members
System.Windows.Ink Namespace