add_control method

add_control

Creates and adds a new control to the collection.

Returns

Created control IControl.

def add_control(self, control_type, x, y, width, height):
    ...
ParameterTypeDescription
control_typeControlTypeType 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.

See Also