Layers.Add Method
Visio Automation Reference |
Adds a new Layer object to a Layers collection.
Version Information
Version Added: Visio 2.0
Syntax
expression.Add(LayerName)
expression A variable that represents a Layers object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
LayerName | Required | String | The name of the new layer. |
Return Value
Layer
Example
The following macro shows how to add a Layer object to the Layers collection.
Visual Basic for Applications |
---|
|
See Also