![]() |
![]() |
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 along a subpath.
An absolute or relative offset from the beginning of the subpath can be specified.
Parameters
|
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 type of offset . This parameter returns cdrSegmentOffsetType.
This parameter is optional, and its default value is cdrRelativeSegmentOffset (1).
|
The following code 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 2007 Corel Corporation. All rights reserved.