addTo(container, index)
Class: Shape.
Description:
Add this shape to a container.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Panel or Window component. |
|
|
|
number |
Optional index to insert the shape. |
Returns:
Returns this Shape instance for chaining.
Type: Shape
Throws:
- TypeError: When a container is not Panel or Window component.
- Error: When specified index is out of bounds.
