Çalışma Sayfasına Sütun Ekleme veya Ekleme
Contents
[
Hide
]
Bu konuda, Aspose.Cells.GridDesktop’un API’ini kullanarak çalışma zamanında çalışma sayfalarına sütun ekleme ve ekleme temel özelliğini açıklayacağız. Toplama ve ekleme arasındaki temel fark, ek olarak, çalışma sayfasının sütunlar koleksiyonunun sonuna sütun eklenmesidir; burada, eklemede olduğu gibi, çalışma sayfasında belirtilen herhangi bir konuma sütun eklenebilir.
Çalışma Sayfasına Sütun Ekleme
Çalışma sayfasına yeni bir sütun eklemek için lütfen aşağıdaki adımları izleyin:
- Aspose.Cells.GridDesktop kontrolünü ekleyin.Biçim
- İstediğiniz herhangi birine erişinÇalışma kağıdı
- EklemekKolon içinÇalışma kağıdı
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing first worksheet of the Grid | |
Worksheet sheet = gridDesktop1.Worksheets[0]; | |
// Adding column to the worksheet | |
sheet.AddColumn(); |
Çalışma Sayfasına Sütun Ekleme
Çalışma sayfasına belirli bir konumda yeni bir sütun eklemek için lütfen aşağıdaki adımları izleyin:
- Aspose.Cells.GridDesktop kontrolünü ekleyin.Biçim
- İstediğiniz herhangi birine erişinÇalışma kağıdı
- SokmakKolon içineÇalışma kağıdı (ekleneceği sütunun dizinini belirterek belirli bir konumda)
// Accessing first worksheet of the Grid
Aspose.Cells.GridDesktop.Worksheet sheet = gridDesktop1.Worksheets[0];
// Inserting column to the worksheet to the first position.
sheet.Cells.InsertColumn(0);