Repositions and resizes an object.

Syntax

<oRef>.move(<left expN> [, <top expN> [, <width expN> [, <height expN>]]])

<oRef>

The object to move or resize.

<left expN>

The new left property.

<top expN>

The new top property.

<width expN>

The new width property. To change the size of the image, you must specify both the <left expN> and the <top expN>.

<height expN>

The new height property.

Property of

Most form objects

Description

Use move( ) to reposition and/or resize an object in one step. You could assign the four properties directly, but doing so would require four separate steps, and the object would have to be moved and/or resized after each step. Using move( ) is faster.

If you want to resize the object without moving it, pass the current left and top properties as parameters to move( ), along with the new width and height.

If you’re using move( ) to resize an image, the object’s alignment property should be set to either Stretch (0) or Keep Aspect Stretch (3).