|   |   | Object Model Reference : Classes : S : SubPath : Methods : SubPath.AddNodeAt | 
Function AddNodeAt([Offset As Double = 0.5], [OffsetType As cdrSegmentOffsetType = cdrRelativeSegmentOffset]) As Node
Member of SubPath
The AddNodeAt method inserts a node at a given point on a subpath. An absolute or relative offset from the beginning of the subpath can be specified.
| 
Parameter
 | 
Description
 | 
| 
Offset
 | 
Specifies the offset distance, in document units, of the new node. This parameter is optional, and its default value is 0.5.
 | 
| 
OffsetType
 | 
Specifies the offset type, and returns cdrSegmentOffsetType. This parameter is optional, and its default value is cdrRelativeSegmentOffset (1).
 | 
The following VBA example adds a new node to the middle of each subpath.
| Sub Test() | 
|  Dim sp As SubPath | 
|  For Each sp In ActiveShape.Curve.Subpaths | 
|   sp.AddNodeAt 0.5, cdrRelativeSegmentOffset | 
|  Next sp | 
| End Sub | 
|   |   |   | 
Copyright 2013 Corel Corporation. All rights reserved.