Click or drag to resize
CellRangeCopyTo Method (Int32, Int32)
Copies this cell range to another position in the same worksheet.

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

Parameters

absoluteRow
Type: SystemInt32
Absolute index of the destination row.
absoluteColumn
Type: SystemInt32
Absolute index of the destination column.
Exceptions
ExceptionCondition
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