ChartArea module
- class ChartArea.ChartArea
Bases:
XlsChartFrameFormat- property Border: ChartBorder
- <summary>
Represents chart border. Read only.
</summary>
- property Interior: ChartInterior
- <summary>
- Represents chart interior. Read only.
<example>The following code illustrates the use of Interior property: <code>
//Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile(“Sample.xlsx”); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range[“B2:C6”]; //Set chart type chart.ChartType = ExcelChartType.Column3DClustered; //Gets interior formatting properties for the chart element IChartInterior chartInterior = chart.ChartArea.Interior; chartInterior.BackgroundColor = Color.Beige; chartInterior.Pattern = ExcelPatternType.DarkDownwardDiagonal; //Save to file workbook.SaveToFile(“Chart.xlsx”); </code> </example>
</summary>