ODS Dosyasından Grafik Altyazısını Oku
Contents
[
Hide
]
ODS Dosyasından Grafik Alt Başlığını Okuma
Aspose.Cells, Chart.SubTitle özelliği kullanarak ODS dosyalarında grafik altyazıları okumanıza olanak tanır. Aşağıdaki örnek kod, örnek ODS dosyasını yükler ve Chart.SubTitle özelliğini kullanarak grafik altyazısını okur ve Konsol Penceresinde yazdırır. Referans için aşağıdaki kodun konsol çıktısına bakınız.
Örnek Kod
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-.NET | |
//Source directory | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
// Load excel file containing charts | |
Workbook workbook = new Workbook(sourceDir + "SampleChart.ods"); | |
// Access first worksheet | |
Worksheet worksheet = workbook.Worksheets[0]; | |
// Access first chart inside the worksheet | |
Chart chart = worksheet.Charts[0]; | |
Console.WriteLine("Chart Subtitle: " + chart.SubTitle.Text); |
Konsol Çıktısı
Chart Subtitle: Sample Chart Subtitle