Çalışma Taşrafları Sekme Rengi Ayarla
Contents
[
Hide
]
Aspose.Cells, bireysel çalışma sayfası sekmelerinin rengini değiştirmenize olanak tanır, böylece onları geri kalanından ayırt edebilirsiniz. Örneğin, Giderleri kırmızı, Satışları yeşil, Varlıkları mavi vb. yapabilirsiniz.
Microsoft Excel ile Çalışma Sayfası Sekmesi Rengini Ayarlama
- Mevcut çalışma sayfasının altındaki sekme sayfasında bir sekmeye sağ tıklayın.
- Sekme rengi‘ni seçin.
- Paletten bir renk seçin.
- Tamam‘a tıklayın.
Sekmeler kırmızı, yeşil ve mavi renkte boyanmıştır
Aspose.Cells ile Çalışma Taşraflarında Sekme Rengi Ayarı
Aşağıdaki örnek kod, Aspose.Cells ile sekme rengini ayarlamanın nasıl yapıldığını göstermektedir.
This file contains 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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(SetWorksheetTabColor.class); | |
// Instantiate a new Workbook | |
Workbook workbook = new Workbook(dataDir + "Book1.xls"); | |
// Get the first worksheet in the book | |
Worksheet worksheet = workbook.getWorksheets().get(0); | |
// Set the tab color | |
worksheet.setTabColor(Color.getRed()); | |
// Save the Excel file | |
workbook.save(dataDir + "worksheettabcolor.xls"); |