Aspose::Cells::Drawing::PictureCollection class

PictureCollection class

Encapsulates a collection of Picture objects.

class PictureCollection

Methods

MethodDescription
Add(int32_t upperLeftRow, int32_t upperLeftColumn, int32_t lowerRightRow, int32_t lowerRightColumn, const Vector <uint8_t>& stream)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, int32_t lowerRightRow, int32_t lowerRightColumn, const U16String& fileName)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, int32_t lowerRightRow, int32_t lowerRightColumn, const char16_t* fileName)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const Vector <uint8_t>& stream)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const U16String& fileName)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const char16_t* fileName)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const Vector <uint8_t>& stream, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const U16String& fileName, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
Add(int32_t upperLeftRow, int32_t upperLeftColumn, const char16_t* fileName, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
Clear()Clear all pictures.
Get(int32_t index)Gets the Picture element at the specified index.
GetCount()
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const PictureCollection& src)operator=
PictureCollection(PictureCollection_Impl* impl)Constructs from an implementation object.
PictureCollection(const PictureCollection& src)Copy constructor.
RemoveAt(int32_t index)Remove shapes at the specific index.
~PictureCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

Examples

Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;

//get PictureCollection
PictureCollection pictures = workbook.GetWorksheets().Get(0).GetPictures();


//Save the excel file.
workbook.Save(u"result.xlsx");
Aspose::Cells::Cleanup();

See Also