auto_fill方法

auto_fill

自动填充目标范围。

def auto_fill(self, target):
    ...
范围类型描述
targetRange目标范围。

例子

from aspose.cells import Workbook

# Instantiating a Workbook object
workbook = Workbook()
#  Get the first Worksheet Cells.
cells = workbook.worksheets[0].cells
cells.get("A1").put_value(1)
cells.get("A2").put_value(2)
source = cells.create_range("A1:A2")
target = cells.create_range("A3:A10")
# fill 3,4,5....10 to the range A3:A10
source.auto_fill(target)
# Save the Excel file
workbook.save("book1.xlsm")

auto_fill

自动填充目标范围。

def auto_fill(self, target, auto_fill_type):
    ...
范围类型描述
targetRange目标范围。
auto_fill_typeAutoFillType自动填充类型。

也可以看看