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

Microsoft Excel ile Çalışma Sayfası Sekmesi Rengini Nasıl Ayarlanır

  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.

Aspose.Cells for Python Excel Kütüphanesi ile Çalışma Sayfası Sekmesi Rengi Nasıl Ayarlanır

Aşağıdaki örnek kod, Aspose.Cells for Python kullanarak sekme rengini nasıl ayarlayacağınızı gösterir via .NET.

from aspose.cells import Workbook
from aspose.pydrawing import Color
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
# Instantiate a new Workbook
# Open an Excel file
workbook = Workbook(dataDir + "Book1.xlsx")
# Get the first worksheet in the book
worksheet = workbook.worksheets[0]
# Set the tab color
worksheet.tab_color = Color.red
# Save the Excel file
workbook.save(dataDir + "worksheettabcolor.out.xls")