![]() |
![]() |
Segment.AddNodeAt
Function AddNodeAt([Offset As Double = 0.5], [OffsetType As cdrSegmentOffsetType = cdrParamSegmentOffset]) As Node
Member of Segment
The AddNodeAt method adds a node to a segment at a specified offset.
Parameters
|
Description
|
Offset
|
Specifies the offset, in document units, from the beginning of a segments subpath
This parameter is optional, and its default value is 0.5.
|
OffsetType
|
Specifies the type of offset of a point on a curves subpath. This parameter returns cdrSegmentOffsetType.
This parameter is optional, and its default value is cdrParamSegmentOffset (2).
|
The following code example creates a curve segment and adds a node at its center:
Sub Test() Dim s As Shape Set s = ActiveLayer.CreateCurveSegment(2, 8.3, 5.3, 8.5, 1.5, -62, 2.4, 84) s.Curve.Segments(1).AddNodeAt 0.5, cdrRelativeSegmentOffset End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.