public class ControlCollection extends java.lang.Object implements IControlCollection
A collection of ActiveX controls.
Modifier and Type | Method and Description |
---|---|
IControl |
addControl(int controlType,
float x,
float y,
float width,
float height)
Creates and adds a new control to the collection.
|
void |
clear()
Removes all controls from the collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the entire collection to the specified array.
|
IControl |
get_Item(int index)
Returns a control at the specified position.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IControl> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
remove(IControl item)
Removes an ActiveX control from the collection.
|
void |
removeAt(int index)
Removes an ActiveX control stored at specified position from the collection.
|
int |
size()
Returns a number of objects in the collection.
|
public final int size()
Returns a number of objects in the collection.
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<IControl>
public final IControl addControl(int controlType, float x, float y, float width, float height)
Creates and adds a new control to the collection.
addControl
in interface IControlCollection
controlType
- Type of a control to add.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.public final void remove(IControl item)
Removes an ActiveX control from the collection.
remove
in interface IControlCollection
item
- A control to remove.public final void removeAt(int index)
Removes an ActiveX control stored at specified position from the collection.
removeAt
in interface IControlCollection
index
- Index of a control to remove.public final void clear()
Removes all controls from the collection.
clear
in interface IControlCollection
public final IControl get_Item(int index)
Returns a control at the specified position.
get_Item
in interface IControlCollection
index
- Index of a control.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IControl> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IControl>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IControl>
iterator
in interface java.lang.Iterable<IControl>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies the entire collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<IControl>
array
- Target arrayindex
- Index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<IControl>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<IControl>
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.