addControl
addControl(int controlType, float x, float y, float width, float height) method
Creates and adds a new control to the collection.
Parameters
| Name | Type | Description |
|---|---|---|
| controlType | int | Type of a control to add. |
| x | float | The X-coordinate for a left side of shape’s frame. |
| y | float | The Y-coordinate for a top side of shape’s frame. |
| width | float | The width of shape’s frame. |
| height | float | The height of shape’s frame. |