Çalışma Sayfası Kopyalama

Çalışma Sayfasını Kopyalama

Sayfa dizinini kullanma

Aşağıdaki örnek kod, GridWorksheetCollection’ın AddCopy yönteminde çalışma sayfasının dizinini belirterek bir çalışma sayfasının kopyasının GridWeb denetimine nasıl ekleneceğini gösterir.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Adding the copy of a worksheet to GridWeb by specifying its sheet index
int sheetIndex = GridWeb1.WorkSheets.AddCopy(0);

Sayfa Adını Kullanma

Aşağıdaki örnek kod, GridWorksheetCollection’ın AddCopy yönteminde çalışma sayfasının adını belirterek GridWeb denetimine bir çalışma sayfasının bir kopyasının nasıl ekleneceğini gösterir.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Adding the copy of a worksheet to GridWeb by specifying its sheet name
int sheetIndex1 = GridWeb1.WorkSheets.AddCopy("Students");