Cut and Paste Ranges

Cut and Paste Cells

Aspose.Cells provides you with the ability to cut and paste cells within a worksheet by using the insertCutCells method of the Cells collection. The insertCutCells method accepts the following parameters.

  • Range: The range of cells to be cut.
  • Row index: The index of the row where cells will be inserted.
  • Column index: The index of the column where cells will be inserted.
  • ShiftType: The shift direction for the columns.

The following example shows how to cut and paste cells within a worksheet.

Sample Code