Previous Document Next Document

Object Model Reference : Classes : S : SubPath : Methods : SubPath.Move


SubPath.Move

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

Description

Member of SubPath

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

Parameter
Description
DeltaX
Specifies the horizontal offset. This parameter is optional, and its default value is 0.
DeltaY
Specifies the vertical offset. This parameter is optional, and its default value is 0.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.