com.aspose.slides
Class PictureCollection

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

public final class PictureCollection
extends Pictures
implements com.aspose.ms.System.Collections.ICollection<Picture>

Represents a collection of a Pictures.


Method Summary
 int add(Picture picture)
           Adds a Picture to the end of a collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 Picture get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 Picture getPictureById(int id)
           Returns the Picture by its Id.
 java.lang.Object getSyncRoot()
           Returns synchronization root.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator<Picture> iterator()
           Returns an enumerator for the entire collection.
static void replaceInShapes(Picture src, Picture dst)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

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

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<Picture>
Parameters:
array - Target array.
index - Starting 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<Picture>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns synchronization root.

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

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<Picture>

getCount

public int getCount()
Description copied from class: Pictures

Gets the number of elements actually contained in the collection.

Overrides:
getCount in class Pictures

get_Item

public Picture get_Item(int index)
Description copied from class: Pictures

Gets the element at the specified index.

Overrides:
get_Item in class Pictures

getPictureById

public Picture getPictureById(int id)
Description copied from class: Pictures

Returns the Picture by its Id.

Overrides:
getPictureById in class Pictures
Parameters:
id - Picture's Id.
Returns:
Aspose.Slides.Picture object or <b>null</b> if Picture not found.

add

public int add(Picture picture)
Description copied from class: Pictures

Adds a Picture to the end of a collection.

Overrides:
add in class Pictures
Parameters:
picture - The Picture to be added to the end of the collection.
Returns:

replaceInShapes

public static void replaceInShapes(Picture src,
                                   Picture dst)

iterator

public com.aspose.ms.System.Collections.IEnumerator<Picture> iterator()
Description copied from class: Pictures

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<Picture>
Specified by:
iterator in interface java.lang.Iterable<Picture>
Overrides:
iterator in class Pictures
Returns:
An IEnumerator for the entire collection.