com.aspose.slides
Class ControlExCollection

java.lang.Object
  extended by com.aspose.slides.ControlExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<ControlEx>, com.aspose.ms.System.Collections.IEnumerable<ControlEx>, java.lang.Iterable<ControlEx>

public class ControlExCollection
extends java.lang.Object
implements com.aspose.ms.System.Collections.ICollection<ControlEx>

A collection of ActiveX controls.


Method Summary
 ControlEx 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.
 ControlEx get_Item(int index)
           Returns a control at the specified position.
 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.IEnumerator<ControlEx> iterator()
           Returns an enumerator for the entire collection.
 void remove(ControlEx 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

Returns a number of objects in the collection.

Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<ControlEx>

addControl

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

Creates and adds a new control to the collection.

Parameters:
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.
Returns:
Created control.

remove

public void remove(ControlEx item)

Removes an ActiveX control from the collection.

Parameters:
item - A control to remove.

removeAt

public void removeAt(int index)

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

Parameters:
index - Index of a control to remove.

clear

public void clear()

Removes all controls from the collection.


get_Item

public ControlEx get_Item(int index)

Returns a control at the specified position.

Parameters:
index - Index of a control.

iterator

public com.aspose.ms.System.Collections.IEnumerator<ControlEx> iterator()

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<ControlEx>
Specified by:
iterator in interface java.lang.Iterable<ControlEx>
Returns:

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies the entire collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<ControlEx>
Parameters:
array - Target array
index - Index in the target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe).

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<ControlEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<ControlEx>