addControl

addControl(int controlType, float x, float y, float width, float height) method

Creates and adds a new control to the collection.

Parameters

NameTypeDescription
controlTypeintType of a control to add.
xfloatThe X-coordinate for a left side of shape’s frame.
yfloatThe Y-coordinate for a top side of shape’s frame.
widthfloatThe width of shape’s frame.
heightfloatThe height of shape’s frame.

Returns

Control