copy_in_range method

copy_in_range

Copy shapes in the range to destination range.

def copy_in_range(self, source_shapes, ca, dest_row, dest_column, is_contained):
    ...
ParameterTypeDescription
source_shapesShapeCollectionSource shapes.
caCellAreaThe source range.
dest_rowintThe dest row index of the dest range.
dest_columnintThe dest column of the dest range.
is_containedboolWhether 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.

Example

from aspose.cells import CellArea

# add a shape
shapes.add_rectangle(2, 0, 2, 0, 130, 130)
area2 = CellArea()
area2.start_column = 1
area2.start_row = 1
area2.end_column = 5
area2.end_row = 11
# copy
shapes.copy_in_range(shapes, area2, 12, 1, False)

See Also