Object Model Reference : Classes : S : Segment : Methods : 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.
Parameter
|
Description
|
Offset
|
Specifies the offset, in document units, from the beginning of the segments subpath. This parameter is optional, and its default value is 0.5.
|
OffsetType
|
Specifies the type of offset of the point on the curves subpath, and returns cdrSegmentOffsetType. This parameter is optional, and its default value is cdrParamSegmentOffset (2).
|
The following VBA 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 2013 Corel Corporation. All rights reserved.