GemBox.Spreadsheet

CellRange.CopyTo Method (ExcelWorksheet, String)

Copies this cell range to another worksheet.

public void CopyTo(
   ExcelWorksheet destinationWorksheet,
   string topLeftCell
);

Parameters

destinationWorksheet
Destination worksheet.
topLeftCell
Full name of the top-left cell of the destination range.

Remarks

topLeftCell specifies 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:

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionThrown if destination range is invalid.

See Also

CellRange Class | GemBox.Spreadsheet Namespace | CellRange.CopyTo Overload List