Leggi il sottotitolo del grafico dal file ODS
Contents
[
Hide
]
Leggi il sottotitolo del grafico dal file ODS
Aspose.Cells offre la possibilità di leggere i sottotitoli dei grafici nei file ODS utilizzando ilGrafico.Sottotitolo proprietà. Il codice di esempio seguente carica il filefile di esempio ODS e legge il sottotitolo del grafico utilizzandoGrafico.Sottotitolo proprietà e lo stampa nella finestra della console. Si prega di consultare l’output della console del codice indicato di seguito per riferimento.
Codice d’esempio
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); |
Uscita console
Chart Subtitle: Sample Chart Subtitle