AddControl()

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

Creates and adds a new control to the collection.

System::SharedPtr<IControl> Aspose::Slides::ControlCollection::AddControl(ControlType controlType, float x, float y, float width, float height) override

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.

See Also