Previous Document Next Document

Object Model Reference : Classes : N : Node : Methods : Node.JoinWith


Node.JoinWith

Sub JoinWith(Target As Node)

Description

Member of Node

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

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

Parameter
Description
Target
Specifies the node to join to the current node

VBA example

The following VBA example joins the first and last nodes of the active curve by merging them 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 2013 Corel Corporation. All rights reserved.