ContextLinkCollection.Add Method
Adds a new ContextLink object to the ContextLinkCollection, indicating the destination node and its direction.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.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
- destinationNode
The ContextNode to be linked to.
- linkDirection
The link direction.
Return Value
The new ContextLink object.
Remarks
The ContextNode this collection is associated with becomes the SourceNode in the new ContextLink object.
The 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, Microsoft.Ink.ContextLinkDirection.LinksWith)
drawing.Links.Add(word, Microsoft.Ink.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
Microsoft.Ink Namespace