Previous Document Next Document

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


SubPath.AddNodeAt

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

Description

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).

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.