The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Worksheet.CopyFrom(Worksheet) Method

Copies the specified worksheet into the current instance.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

void CopyFrom(Worksheet source)
Sub CopyFrom(source As Worksheet)
void CopyFrom(Worksheet source)
Sub CopyFrom(source As Worksheet)

Parameters

Name Type Description
source Worksheet

A Worksheet object that specifies the source worksheet for copying.

Parameters

Name Type Description
source Worksheet

A Worksheet object that specifies the source worksheet for copying.

Examples

This example demonstrates how to create a copy of an existing worksheet. To do this, follow the steps below.

// Add a new worksheet to a workbook.
workbook.Worksheets.Add("Sheet1_Copy");

// Copy all information (content and formatting) to the newly created worksheet 
// from the "Sheet1" worksheet.
workbook.Worksheets["Sheet1_Copy"].CopyFrom(workbook.Worksheets["Sheet1"]);
See Also