ControlCollection

ControlCollection class

A collection of ActiveX controls.

addControl

NameDescription
addControl(int, float, float, float, float)Creates and adds a new control to the collection.

Parameters:

NameTypeDescription
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: Control


clear

NameDescription
clear()Removes all controls from the collection.

getSyncRoot

NameDescription
getSyncRoot()Returns a synchronization root. Read-only Object.

Returns: Object


get_Item

NameDescription
get_Item(int)Returns a control at the specified position.

Parameters:

NameTypeDescription
indexintIndex of a control.

Returns: Control


isSynchronized

NameDescription
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove(Control)Removes an ActiveX control from the collection.

Parameters:

NameTypeDescription
itemControlA control to remove.

removeAt

NameDescription
removeAt(int)Removes an ActiveX control stored at specified position from the collection.

Parameters:

NameTypeDescription
indexintIndex of a control to remove.

size

NameDescription
size()Returns a number of objects in the collection. Read-only int.

Returns: int