Previous Document Next Document

Object Model Reference : Classes : C : Curve : Properties : Curve.Nodes


Curve.Nodes

Property Nodes As Nodes

Description

Member of Curve

The Nodes property returns all the nodes on all the subpaths in a curve.

The Nodes property returns a read-only value.

VBA example

The following VBA example selects a shape in the active document and determines if the selected shape is a curve object. If the shape is a curve, it displays the number of nodes found on the selected curve in a message box.

Sub CurveNodes()
 Dim s As Shape
 Dim nr As NodeRange
 Set s = ActiveSelection.Shapes(1)
 If s.Type = cdrCurveShape Then
  MsgBox "The selected shape has " & _
  s.Curve.Nodes.Count & " nodes"
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.