Aspose::Cells::Drawing::PictureCollection::Get method

PictureCollection::Get method

Gets the Picture element at the specified index.

Aspose::Cells::Drawing::Picture Aspose::Cells::Drawing::PictureCollection::Get(int32_t index)
ParameterTypeDescription
indexint32_tThe zero based index of the element.

ReturnValue

The element at the specified index.

Examples

//get picture collection
//PictureCollection pictures = workbook.GetWorksheets().Get(0).GetPictures();
//add a picture
int picIndex = pictures.Add(1, 1, u"image.png");
//get the picture
Picture pic = pictures.Get(picIndex);

See Also