Click or drag to resize
CellRangeCopyTo Method (ExcelWorksheet, Int32, Int32)
Copies this cell range to another worksheet.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1018
Syntax
public void CopyTo(
	ExcelWorksheet destinationWorksheet,
	int absoluteRow,
	int absoluteColumn
)

Parameters

destinationWorksheet
Type: GemBox.SpreadsheetExcelWorksheet
Destination worksheet.
absoluteRow
Type: SystemInt32
Absolute index of the destination row.
absoluteColumn
Type: SystemInt32
Absolute index of the destination column.
Exceptions
ExceptionCondition
ArgumentNullExceptionDestination worksheet is .
ArgumentOutOfRangeExceptionDestination range is invalid.
Remarks

absoluteRow and absoluteColumn specify position of the top-left cell of the destination cell range.

Destination cell range has the same width and height as this cell range.

ArgumentOutOfRangeException is thrown if destination range:

  • breaks Excel worksheet row or column limit,
  • overlaps with source range, or
  • overlaps with existing merged range.

See Also