IControlCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IControlCollection extends IGenericCollection<IControl>

A collection of ActiveX controls.

Methods

MethodDescription
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:

ParameterTypeDescription
itemIControlA control to remove.

removeAt(int index)

public abstract void removeAt(int index)

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

Parameters:

ParameterTypeDescription
indexintIndex 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:

ParameterTypeDescription
indexintIndex 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:

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

Returns: IControl - Created control IControl.