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_shapes | ShapeCollection | 源形状。 |
ca | CellArea | 来源范围。 |
dest_row | int | 目标范围的目标行索引。 |
dest_column | int | 目标范围的目标列。 |
is_contained | bool | 是否只复制范围内的形状。 如果为真,则只复制范围内的形状。 否则,它就像 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)