com.aspose.slides
Class ControlCollection

java.lang.Object
  extended by com.aspose.slides.ControlCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IControl>, com.aspose.ms.System.Collections.ICollection<IControl>, com.aspose.ms.System.Collections.IEnumerable<IControl>, IControlCollection, java.lang.Iterable<IControl>

public class ControlCollection
extends java.lang.Object
implements IControlCollection

A collection of ActiveX controls.


Method Summary
 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.
 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.
 
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<IControl>

addControl

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

Creates and adds a new control to the collection.

Specified by:
addControl in interface IControlCollection
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(IControl item)

Removes an ActiveX control from the collection.

Specified by:
remove in interface IControlCollection
Parameters:
item - A control to remove.

removeAt

public void removeAt(int index)

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

Specified by:
removeAt in interface IControlCollection
Parameters:
index - Index of a control to remove.

clear

public void clear()

Removes all controls from the collection.

Specified by:
clear in interface IControlCollection

get_Item

public IControl get_Item(int index)

Returns a control at the specified position.

Specified by:
get_Item in interface IControlCollection
Parameters:
index - Index of a control.

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IControl> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IControl>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IControl>
Specified by:
iterator in interface java.lang.Iterable<IControl>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

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<IControl>
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<IControl>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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