Previous Document Next Document
SubPath.Move

Sub Move([DeltaX As Double], [DeltaY As Double])

Member of SubPath

The Move method changes the position of a curve’s subpath by moving it a specified offset.

Parameters
Description
DeltaX
Specifies the horizontal distance to move a subpath
This parameter is optional, and its default value is 0.
DeltaY
Specifies the vertical distance to move a subpath
This parameter is optional, and its default value is 0.

The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.