ControlCollection
ControlCollection class
A collection of ActiveX controls.
addControl
Name | Description |
---|---|
addControl (int, float, float, float, float) | Creates and adds a new control to the collection. |
Parameters:
Name | 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: Control
clear
Name | Description |
---|---|
clear () | Removes all controls from the collection. |
Returns: void
getSyncRoot
Name | Description |
---|---|
getSyncRoot () | Returns a synchronization root. Read-only Object. |
Returns: Object
get_Item
Name | Description |
---|---|
get_Item (int) | Returns a control at the specified position. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | Index of a control. |
Returns: Control
isSynchronized
Name | Description |
---|---|
isSynchronized () | Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean. |
Returns: boolean
iterator
Name | Description |
---|---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
Name | Description |
---|---|
remove (Control) | Removes an ActiveX control from the collection. |
Parameters:
Name | Type | Description |
---|---|---|
item | Control | A control to remove. |
Returns: void
removeAt
Name | Description |
---|---|
removeAt (int) | Removes an ActiveX control stored at specified position from the collection. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | Index of a control to remove. |
Returns: void
size
Name | Description |
---|---|
size () | Returns a number of objects in the collection. Read-only int. |
Returns: int