Previous Document Next Document
Node.GetPosition

Sub GetPosition(PositionX As Double, PositionY As Double)

Member of Node

The GetPosition method returns the horizontal and y-coordinates of a node.

The SetPosition method moves the node to new coordinates.

Parameters
Description
PositionX
Specifies the x-, or horizontal, coordinate of a node. The x-coordinate is measured in document units.
PositionY
Specifies the y-, or vertical, coordinate of a node. The y-coordinate is measured in document units.

The following code example draws small ellipses over each node in the selected curve:

Sub Test() 
 Dim n As Node 
 Dim x As Double, y As Double 
 For Each n In ActiveShape.Curve.Nodes 
  n.GetPosition x, y 
  ActiveLayer.CreateEllipse2 x, y, 0.05 
 Next n 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.