ControlCollectionAddControl Method |
Creates and adds a new control to the collection.
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntaxpublic IControl AddControl(
ControlType controlType,
float x,
float y,
float width,
float height
)
Public Function AddControl (
controlType As ControlType,
x As Single,
y As Single,
width As Single,
height As Single
) As IControl
public:
virtual IControl^ AddControl(
ControlType controlType,
float x,
float y,
float width,
float height
) sealed
abstract AddControl :
controlType : ControlType *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> IControl
override AddControl :
controlType : ControlType *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> IControl
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:
IControlCreated control.
Implements
IControlCollectionAddControl(ControlType, Single, Single, Single, Single)
See Also