Çalışma Taşrafları Sekme Rengi Ayarla

Microsoft Excel ile Çalışma Sayfası Sekmesi Rengini Ayarlama

  1. Mevcut çalışma sayfasının altındaki sekme sayfasında bir sekmeye sağ tıklayın.
  2. Sekme rengi‘ni seçin.
  3. Paletten bir renk seçin.
  4. Tamam‘a tıklayın.

Sekmeler kırmızı, yeşil ve mavi renkte boyanmıştır

todo:image_alt_text

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.

// 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");