Çalışma Taşrafları Sekme Rengi Ayarla
Contents
[
Hide
]
Aspose.Cells for Python via .NET, tek tek çalışma sayfası sekmelerinin rengini değiştirerek onları diğerlerinden belirgin hale getirmenizi sağlar. Örneğin, Masraflar kırmızı, Satışlar yeşil, Varlıklar mavi yapabilirsiniz.
Microsoft Excel ile Çalışma Sayfası Sekmesi Rengini Nasıl Ayarlanır
- 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.
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.
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
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") |