API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.SetPosition method
Sets the horizontal and vertical position of the subpath's head on the page
Syntax:
Sub SetPosition(ByVal PositionX As Double, ByVal PositionY As Double)
Parameters:
Name Type Description
PositionX
Double
PositionY
Double
Remarks:
The SetPosition method sets the horizontal and vertical positions of a subpath head, treating the subpath as a separate object.
Examples:
The following VBA example sets the horizontal and vertical positions of the first subpath in the active curve.
Sub App()
With ActiveShape.Curve.Subpaths(1)
  .SetPosition 4, 4
End With 
End Sub