[]
Adds a shape to the container.
public virtual int AddShape(PSShape shape)
Public Overridable Function AddShape(shape As PSShape) As Integer
| Type | Name | Description |
|---|---|---|
| PSShape | shape | Shape to add |
| Type | Description |
|---|---|
| int | Index of shape in the container |
| Type | Condition |
|---|---|
| Exception | Shape name already exists in the container; shape names must be unique |
| Exception | No shape name specified or shape name is null or empty; shape names must be non-null and non-empty |