com.aspose.cells
Class PictureCollection

java.lang.Object
  extended by CollectionBase
      extended by com.aspose.cells.PictureCollection
All Implemented Interfaces:
com.aspose.cells.c.b.a.a.a.c.b.e

public class PictureCollection 
extends CollectionBase

Encapsulates a collection of Picture objects.

Property Getters/Setters Summary
intgetCount()→ inherited from com.aspose.cells.CollectionBase
          
Pictureget(int index)
           Gets the Picture element at the specified index.
 
Method Summary
intadd(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, java.io.InputStream stream)
           Adds a picture to the collection.
intadd(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, java.lang.String fileName)
           Adds a picture to the collection.
intadd(int upperLeftRow, int upperLeftColumn, java.io.InputStream stream)
           Adds a picture to the collection.
intadd(int upperLeftRow, int upperLeftColumn, java.io.InputStream stream, int widthScale, int heightScale)
           Adds a picture to the collection.
intadd(int upperLeftRow, int upperLeftColumn, java.lang.String fileName)
           Adds a picture to the collection.
intadd(int upperLeftRow, int upperLeftColumn, java.lang.String fileName, int widthScale, int heightScale)
           Adds a picture to the collection.
intadd(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
voidclear()
           Clear all pictures.
booleancontains(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
java.lang.Objectget(int index)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
intindexOf(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
java.util.Iteratoriterator()→ inherited from com.aspose.cells.CollectionBase
          
voidremoveAt(int index)
           Remove shapes at the specific index
 

Property Getters/Setters Detail

getCount

→ inherited from com.aspose.cells.CollectionBase
public int getCount()

get

public Picture get(int index)
Gets the Picture element at the specified index.
Parameters:
index - The zero based index of the element.
Returns:
The element at the specified index.

Method Detail

add

public int add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, java.io.InputStream stream)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
lowerRightRow - Lower right row index
lowerRightColumn - Lower right column index
stream - Stream object which contains the image data.
Returns:
Picture object index.

add

public int add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, java.lang.String fileName)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
lowerRightRow - Lower right row index
lowerRightColumn - Lower right column index
fileName - Image filename.
Returns:
Picture object index.

add

public int add(int upperLeftRow, int upperLeftColumn, java.io.InputStream stream)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
stream - Stream object which contains the image data.
Returns:
Picture object index.

add

public int add(int upperLeftRow, int upperLeftColumn, java.lang.String fileName)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
fileName - Image filename.
Returns:
Picture object index.

add

public int add(int upperLeftRow, int upperLeftColumn, java.io.InputStream stream, int widthScale, int heightScale)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
stream - Stream object which contains the image data.
widthScale - Scale of image width, a percentage.
heightScale - Scale of image height, a percentage.
Returns:
Picture object index.

add

public int add(int upperLeftRow, int upperLeftColumn, java.lang.String fileName, int widthScale, int heightScale)
       throws java.lang.Exception
Adds a picture to the collection.
Parameters:
upperLeftRow - Upper left row index.
upperLeftColumn - Upper left column index.
fileName - Image filename.
widthScale - Scale of image width, a percentage.
heightScale - Scale of image height, a percentage.
Returns:
Picture object index.

clear

public void clear()
Clear all pictures.

removeAt

public void removeAt(int index)
Remove shapes at the specific index

iterator

→ inherited from com.aspose.cells.CollectionBase
public java.util.Iterator iterator()

get

→ inherited from com.aspose.cells.CollectionBase
public java.lang.Object get(int index)
Reserved for internal use.

contains

→ inherited from com.aspose.cells.CollectionBase
public boolean contains(java.lang.Object value)
Reserved for internal use.

add

→ inherited from com.aspose.cells.CollectionBase
public int add(java.lang.Object value)
Reserved for internal use.

indexOf

→ inherited from com.aspose.cells.CollectionBase
public int indexOf(java.lang.Object value)
Reserved for internal use.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.