ControlCollectionAddControl Method

Creates and adds a new control to the collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.6.0.0 (21.6)
Syntax
public IControl AddControl(
	ControlType controlType,
	float x,
	float y,
	float width,
	float height
)

Parameters

controlType
Type: Aspose.SlidesControlType
Type of a control to add.
x
Type: SystemSingle
The X-coordinate for a left side of shape's frame.
y
Type: SystemSingle
The Y-coordinate for a top side of shape's frame.
width
Type: SystemSingle
The width of shape's frame.
height
Type: SystemSingle
The height of shape's frame.

Return Value

Type: IControl
Created control.

Implements

IControlCollectionAddControl(ControlType, Single, Single, Single, Single)
See Also