Previous Document Next Document

Object Model Reference : Classes : N : Node : Methods : Node.Next


Node.Next

Function Next() As Node

Description

Member of Node

The Next method returns the next node in a curve, relative to a given node.

VBA example

The following VBA example changes the fifth node to a smooth node if the fourth node of the curve is symmetrical and the fifth node is a cusp node.

Sub Test()
 Dim s As Shape
 Dim n As Node
 Set s = ActiveShape
 If s.Type = cdrCurveShape Then
  Set n = s.Curve.Nodes(4)
  If n.Type = cdrSymmetricalNode And n.Next.Type = cdrCuspNode Then
   n.Next.Type = cdrSmoothNode
  End If
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.