Previous Document Next Document

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


Node.GetPosition

Sub GetPosition(PositionX As Double, PositionY As Double)

Description

Member of Node

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

 
The SetPosition method moves a node to new coordinates.

Parameter
Description
PositionX
Specifies the x-, or horizontal, coordinate of the node, measured in document units
PositionY
Specifies the y-, or vertical, coordinate of the node, measured in document units

VBA example

The following VBA example draws a small ellipse 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 2013 Corel Corporation. All rights reserved.