Duplicate Method

Copies the selected objects in the container. This is equivalent to selecting Duplicate from the Edit menu.

Syntax

object.Duplicate

Properties

The Duplicate method syntax has this part:

Part

Description

object

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

Remarks

The Duplicate method is a configure-time method. Duplicate copies any object currently selected. Furthermore, a duplicated object also duplicates its children (contained objects). New names are generated for each new object and all inter-object relationships (connections, containment, internal script object references) are changed to use the new names of the duplicated objects.

NOTE:  For Enhanced Charts (LineChart, XY, Histogram, and SPC) the Duplicate method can be used in run mode as well.

 

Example

Applies To