Previous Document Next Document
SubPath.SetPosition

Sub SetPosition(PositionX As Double, PositionY As Double)

Member of SubPath

The SetPosition method sets the horizontal and vertical position of a subpaths’ head as if the subpath were a separate shape object.

Parameters
Description
PositionX
Sets the x-, or horizontal, coordinate of a subpath’s starting point, measured in document units
PositionY
Sets the y-, or vertical, coordinate of a subpath’s starting point, measured in document units

The following code example sets the horizontal and vertical position of the first subpath in the active curve:

Sub App() 
 With ActiveShape.Curve.Subpaths(1) 
  .SetPosition 4, 4 
 End With 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.