Aspose.Cells for Python via .NET kullanarak grafik açıklaması girişinin doldurma rengini yok saymak için ayar yapın.

Contents
[ ]

Aşağıdaki örnek kod, grafik efsanesinin ikinci giriş doldurmasını hiçbiri olarak ayarlar. Lütfen bu kodda kullanılan örnek excel dosyasını ve bununla oluşturulan çıktı excel dosyasını indirin.

Aşağıdaki ekran görüntüsü, bu kodun örnek excel dosyası üzerindeki etkilerini vurgular.

todo:image_alt_text

from aspose.cells import SaveFormat, Workbook
# 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(".")
# Open the template file.
workbook = Workbook(dataDir + "Sample.xlsx")
# Access the first worksheet
sheet = workbook.worksheets[0]
# Access the first chart inside the sheet
chart = sheet.charts[0]
# Set text of second legend entry fill to none
chart.legend.legend_entries[1].is_text_no_fill = True
# Save the workbook in xlsx format
workbook.save(dataDir + "ChartLegendEntry_out.xlsx", SaveFormat.XLSX)