Aspose::Cells::Drawing::PictureCollection class

PictureCollection class

Encapsulates a collection of Picture objects.

class PictureCollection

Methods

MethodDescription
Add(int32_t topRow, int32_t leftColumn, int32_t bottomRow, int32_t rightColumn, const Vector <uint8_t>& stream)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, int32_t bottomRow, int32_t rightColumn, const U16String& fileName)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, int32_t bottomRow, int32_t rightColumn, const char16_t* fileName)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const Vector <uint8_t>& stream)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const U16String& fileName)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const char16_t* fileName)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const Vector <uint8_t>& stream, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const U16String& fileName, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
Add(int32_t topRow, int32_t leftColumn, const char16_t* fileName, int32_t widthScale, int32_t heightScale)Adds a picture to the collection.
begin()Returns an iterator to the beginning of the PictureCollection.
Camera(int32_t row, int32_t column, const U16String& range)Takes a photo of the range.
Camera(int32_t row, int32_t column, const char16_t* range)Takes a photo of the range.
Clear()Clear all pictures.
end()Returns an iterator to the end of the PictureCollection.
Get(int32_t index)Gets the Picture element at the specified index.
GetCount()Gets the number of elements contained in the instance.
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