com.aspose.slides
Class ShapesEx

java.lang.Object
  extended by com.aspose.slides.ShapesEx

public final class ShapesEx
extends java.lang.Object

Represents a collection of shapes.


Method Summary
 ShapeEx get(int index)
          Gets the element at the specified index.
 java.lang.Object getParent()
          Returns a parent object for a Shapes collection.
 int indexOf(ShapeEx shape)
          Returns the zero-based index of the first occurrence of a shape in a collection.
 java.util.Iterator iterator()
          Returns an iterator for the entire collection.
 void remove(int index)
          Removes the element at the specified index of the collection.
 void remove(ShapeEx shape)
          Removes the first occurrence of a specific shape from the collection.
 int size()
          Gets the number of elements actually contained 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()
Gets the number of elements actually contained in the collection.


get

public ShapeEx get(int index)
Gets the element at the specified index.

Parameters:
index - index of the element to return.
Returns:
See ShapeEx.

indexOf

public int indexOf(ShapeEx shape)
Returns the zero-based index of the first occurrence of a shape in a collection.

Parameters:
shape - The shape to locate in a collection.
Returns:
The zero-based index of the first occurrence of shape within a collection, if found; otherwise, -1.

remove

public void remove(int index)
Removes the element at the specified index of the collection.

Parameters:
index - The zero-based index of the element to remove.

remove

public void remove(ShapeEx shape)
Removes the first occurrence of a specific shape from the collection.

Parameters:
shape - The shape to remove from the collection.

iterator

public java.util.Iterator iterator()
Returns an iterator for the entire collection.


getParent

public java.lang.Object getParent()
Returns a parent object for a Shapes collection.