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

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1033
Syntax
public void CopyTo(
	string topLeftCell
)

Parameters

topLeftCell
Type: SystemString
Full name of the top-left cell of the destination range (e.g. "D4", "Sheet2!D5", etc.).
Exceptions
ExceptionCondition
ArgumentExceptionTop-left cell is incorrectly specified.
ArgumentOutOfRangeExceptionDestination range is invalid.
Remarks

topLeftCell specifies position of the top-left cell of the destination cell range (e.g. "D4, "Sheet2!D5", etc.).

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