com.aspose.cells

Class OleObjectCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class OleObjectCollection 
    extends CollectionBase

Represents embedded OLE objects.

Property Getters/Setters Summary
intgetCount()
OleObjectget(int)
Gets the OleObject element at the specified index.
 
Method Summary
intadd(int upperLeftRow, int upperLeftColumn, int height, int width, byte[] imageData)
Adds an OleObject to the collection.
intadd(int upperLeftRow, int upperLeftColumn, int height, int width, byte[] imageData, java.lang.String linkedFile)
Adds an linked OleObject to the collection.
intadd(java.lang.Object value)
Reserved for internal use.
voidclear()
Remove all embedded OLE objects.
booleancontains(java.lang.Object value)
Reserved for internal use.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveAt(int index)
Removes the element at the specified index.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
      • get

        public OleObject get(int index)
        
        Gets the OleObject 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 height, int width, byte[] imageData)
        Adds an OleObject to the collection.
        Parameters:
        upperLeftRow - Upper left row index.
        upperLeftColumn - Upper left column index.
        height - Height of oleObject, in unit of pixel.
        width - Width of oleObject, in unit of pixel.
        imageData - Image of ole object as byte array.
        Returns:
        OleObject object index.
      • add

        public int add(int upperLeftRow, int upperLeftColumn, int height, int width, byte[] imageData, java.lang.String linkedFile)
               throws java.lang.Exception
        Adds an linked OleObject to the collection.
        Parameters:
        upperLeftRow - Upper left row index.
        upperLeftColumn - Upper left column index.
        height - Height of oleObject, in unit of pixel.
        width - Width of oleObject, in unit of pixel.
        imageData - Image of ole object as byte array.
        linkedFile -
        Returns:
        OleObject object index.
      • clear

        public void clear()
        Remove all embedded OLE objects.
      • removeAt

        public void removeAt(int index)
        Removes the element at the specified index.
        Parameters:
        index - The specified index.
      • iterator

        public java.util.Iterator iterator()
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.