Previous Document Next Document

Object Model Reference : Classes : S : Segment : Methods : Segment.AddNodeAt


Segment.AddNodeAt

Function AddNodeAt([Offset As Double = 0.5], [OffsetType As cdrSegmentOffsetType = cdrParamSegmentOffset]) As Node

Description

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 segment’s subpath. This parameter is optional, and its default value is 0.5.
OffsetType
Specifies the type of offset of the point on the curve’s subpath, and returns cdrSegmentOffsetType. This parameter is optional, and its default value is cdrParamSegmentOffset (2).

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.