Add method (Layers collection)

Microsoft Visio Developer Reference

Add method (Layers collection)

See also       

Adds a new Layer object to a Layers collection.

Version added

2.0

Syntax

layerObj = object.Add (layerName)

layerObj

The new Layer object added to the Layers collection.

object

Required. An expression that returns a Layers collection.

layerName

Required String. The name of the new layer.