copy_in_range方法

copy_in_range(source_shapes, ca, dest_row, dest_column, is_contained)

将范围内的形状复制到目标范围。

def copy_in_range(self, source_shapes, ca, dest_row, dest_column, is_contained):
    ...
范围类型描述
source_shapesShapeCollection源形状。
caCellArea来源范围。
dest_rowint目标范围的目标行索引。
dest_columnint目标范围的目标列。
is_containedbool是否只复制范围内的形状。
如果为真,则只复制范围内的形状。
否则,它就像 MS Office 一样工作。

例子

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)

也可以看看