Aspose::Cells::Drawing::IOleObjectCollection Class Referenceabstract

Represents embedded OLE objects. More...

Inherits CollectionBase.

Public Member Functions

virtual Aspose::Cells::Systems::Int32 Add (Aspose::Cells::Systems::Int32 upperLeftRow, Aspose::Cells::Systems::Int32 upperLeftColumn, Aspose::Cells::Systems::Int32 height, Aspose::Cells::Systems::Int32 width, intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::Byte >> imageData)=0
 Adds an OleObject to the collection. More...
 
virtual Aspose::Cells::Systems::Int32 Add (Aspose::Cells::Systems::Int32 upperLeftRow, Aspose::Cells::Systems::Int32 upperLeftColumn, Aspose::Cells::Systems::Int32 height, Aspose::Cells::Systems::Int32 width, intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::Byte >> imageData, intrusive_ptr< Aspose::Cells::Systems::String > linkedFile)=0
 Adds an linked OleObject to the collection. More...
 
virtual intrusive_ptr< Aspose::Cells::Drawing::IOleObjectGetObjectByIndex (Aspose::Cells::Systems::Int32 index)=0
 Gets the IOleObject element at the specified index. More...
 
virtual void Clear ()=0
 Remove all embedded OLE objects. More...
 
virtual void RemoveAt (Aspose::Cells::Systems::Int32 index)=0
 Removes the element at the specified index. More...
 

Detailed Description

Represents embedded OLE objects.

Member Function Documentation

◆ Add() [1/2]

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::Drawing::IOleObjectCollection::Add ( Aspose::Cells::Systems::Int32  upperLeftRow,
Aspose::Cells::Systems::Int32  upperLeftColumn,
Aspose::Cells::Systems::Int32  height,
Aspose::Cells::Systems::Int32  width,
intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::Byte >>  imageData 
)
pure virtual

Adds an OleObject to the collection.

Parameters
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
heightHeight of oleObject, in unit of pixel.
widthWidth of oleObject, in unit of pixel.
imageDataImage of ole object as byte array.
Returns
IOleObject object index.

◆ Add() [2/2]

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::Drawing::IOleObjectCollection::Add ( Aspose::Cells::Systems::Int32  upperLeftRow,
Aspose::Cells::Systems::Int32  upperLeftColumn,
Aspose::Cells::Systems::Int32  height,
Aspose::Cells::Systems::Int32  width,
intrusive_ptr< Aspose::Cells::Systems::Array1D< Aspose::Cells::Systems::Byte >>  imageData,
intrusive_ptr< Aspose::Cells::Systems::String >  linkedFile 
)
pure virtual

Adds an linked OleObject to the collection.

Parameters
upperLeftRowUpper left row index.
upperLeftColumnUpper left column index.
heightHeight of oleObject, in unit of pixel.
widthWidth of oleObject, in unit of pixel.
imageDataImage of ole object as byte array.
linkedFile
Returns
IOleObject object index.

◆ Clear()

virtual void Aspose::Cells::Drawing::IOleObjectCollection::Clear ( )
pure virtual

Remove all embedded OLE objects.

◆ GetObjectByIndex()

virtual intrusive_ptr<Aspose::Cells::Drawing::IOleObject> Aspose::Cells::Drawing::IOleObjectCollection::GetObjectByIndex ( Aspose::Cells::Systems::Int32  index)
pure virtual

Gets the IOleObject element at the specified index.

Parameters
indexThe zero based index of the element.
Returns
The element at the specified index.

◆ RemoveAt()

virtual void Aspose::Cells::Drawing::IOleObjectCollection::RemoveAt ( Aspose::Cells::Systems::Int32  index)
pure virtual

Removes the element at the specified index.

Parameters
indexThe specified index.