Previous Document Next Document
Node.JoinWith

Sub JoinWith(Target As Node)

Member of Node

The JoinWith method connects two ending nodes by merging the two nodes into one.

The ConnectWith method connects two ending nodes by drawing a straight line between them.

Parameters
Description
Target
Specifies the node that is joined to the current node

The following code example joins the first and last nodes of the active curve by merging the two nodes into one:

Sub Connect() 
 Dim s as Shape 
 Dim sp as SubPath 
 Set s = ActiveShape 
 Set sp = ActiveShape.Curve.Subpaths(1) 
 With s.Curve.Nodes(1) 
  .JoinWith sp.Nodes(9) 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.