API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.Move method
Moves the whole subpath by a given delta
Syntax:
Sub Move(Optional ByVal DeltaX As Double = 0, Optional ByVal DeltaY As Double = 0)
Parameters:
Name Type Description
DeltaX
Double
Specifies the horizontal offset.
DeltaY
Double
Specifies the vertical offset.
Remarks:
The Move method changes the position of a curve's subpath by applying the specified offset.
Examples:
The following VBA example moves each subpath of the selected curve randomly.
Sub Test()
Dim spath As SubPath
For Each spath In ActiveShape.Curve.Subpaths
  spath.Move Rnd() * 2 - 1, Rnd() * 2 - 1
Next spath 
End Sub