طريقة copy_in_range

copy_in_range(self, 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)

أنظر أيضا