ExchangePenPositions Method

Sets the location of a Pen within the Pens collection.

Syntax

object.ExchangePenPositions iNewPos, iOldPos

Properties

The ExchangePenPositions method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

iNewPos

Integer. The new location of the pen.

iOldPos

Integer. The current location of the pen.

Remarks

Note that when this method is called for a Pen, all pens starting at that index in the collection are shifted down one (for example, their index is incremented by one).

 

Example

Applies To