copy Methode

copy(self, range)

Kopiert Daten (einschließlich Formeln), Formatierungen, Zeichenobjekte usw. aus einem Quellbereich.


def copy(self, range):
    ...
ParameterTypBeschreibung
rangeRangeQuellobjekt Range.

Beispiel

from aspose.cells import Workbook

# Instantiating a Workbook object
workbook = Workbook()
#  Get the first Worksheet Cells.
cells = workbook.worksheets[0].cells
range1 = cells.create_range("A1:A5")
range2 = cells.create_range("A6:A10")
# Copy the range.
range1.copy(range2)
# Save the Excel file
workbook.save("book1.xlsm")

copy(self, range, options)

Kopieren des Bereichs mit den Optionen zum Einfügen von Inhalten.


def copy(self, range, options):
    ...
ParameterTypBeschreibung
rangeRangeDer Quellbereich.
optionsPasteOptionsDie Optionen zum Einfügen von Inhalten.

Siehe auch