AddControl()

IControlCollection::AddControl(ControlType, float, float, float, float) method

Creates and adds a new control to the collection.

virtual System::SharedPtr<IControl> Aspose::Slides::IControlCollection::AddControl(ControlType controlType, float x, float y, float width, float height)=0

Arguments

ParameterTypeDescription
controlTypeControlTypeType 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.

Return Value

Created control IControl.

See Also