AddControl

IControlCollection.AddControl method

Creates and adds a new control to the collection.

public IControl AddControl(ControlType controlType, float x, float y, float width, float height)
ParameterTypeDescription
controlTypeControlTypeType of a control to add.
xSingleThe X-coordinate for a left side of shape’s frame.
ySingleThe Y-coordinate for a top side of shape’s frame.
widthSingleThe width of shape’s frame.
heightSingleThe height of shape’s frame.

Return Value

Created control IControl.

See Also