Bir Çalışma Sayfası Kopyalamak

Çalışsayfalarını Kopyalama

Sayfa indeksi Kullanma

Aşağıdaki örnek kod, GridWorksheetCollection’ın AddCopy yönteminde çalışma sayfasının dizinini belirterek GridWeb kontrolüne bir çalışma sayfasının kopyasını nasıl ekleyeceğ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ğıda yer alan örnek kod, çalışma sayfasının adını belirterek GridWorksheetCollection’ın AddCopy yöntemini kullanarak GridWeb kontrolüne bir çalışma sayfasının kopyasını nasıl ekleyeceğ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");