IControlCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IControlCollection extends IGenericCollection<IControl>

A collection of ActiveX controls.

Methods

Method Description
remove(IControl item) Removes an ActiveX control from the collection.
removeAt(int index) Removes an ActiveX control stored at specified position from the collection.
clear() Removes all controls from the collection.
get_Item(int index) Returns a control at the specified position.
addControl(int controlType, float x, float y, float width, float height) Creates and adds a new control to the collection.

remove(IControl item)

public abstract void remove(IControl item)

Removes an ActiveX control from the collection.

Parameters:

Parameter Type Description
item IControl A control to remove.

removeAt(int index)

public abstract void removeAt(int index)

Removes an ActiveX control stored at specified position from the collection.

Parameters:

Parameter Type Description
index int Index of a control to remove.

clear()

public abstract void clear()

Removes all controls from the collection.

get_Item(int index)

public abstract IControl get_Item(int index)

Returns a control at the specified position.

Parameters:

Parameter Type Description
index int Index of a control.

Returns: IControl

addControl(int controlType, float x, float y, float width, float height)

public abstract IControl addControl(int controlType, float x, float y, float width, float height)

Creates and adds a new control to the collection.

Parameters:

Parameter Type Description
controlType int Type of a control to add.
x float The X-coordinate for a left side of shape’s frame.
y float The Y-coordinate for a top side of shape’s frame.
width float The width of shape’s frame.
height float The height of shape’s frame.

Returns: IControl - Created control IControl.