Aspose::Cells::Drawing::ShapeCollection::CopyInRange method

ShapeCollection::CopyInRange method

Copy shapes in the range to destination range.

void Aspose::Cells::Drawing::ShapeCollection::CopyInRange(const ShapeCollection &sourceShapes, const CellArea &ca, int32_t destRow, int32_t destColumn, bool isContained)
ParameterTypeDescription
sourceShapesconst ShapeCollection&Source shapes.
caconst CellArea&The source range.
destRowint32_tThe dest row index of the dest range.
destColumnint32_tThe dest column of the dest range.
isContainedboolWhether only copy the shapes which are contained in the range. If true,only copies the shapes in the range. Otherwise,it works as MS Office.

Examples

    //add a shape
shapes.AddRectangle(2, 0, 2, 0, 130, 130);
CellArea area2;
area2.StartColumn = 1;
area2.StartRow = 1;
area2.EndColumn = 5;
area2.EndRow = 11;

//copy
shapes.CopyInRange(shapes, area2, 12, 1, false);

See Also