Click or drag to resize

IChartSerieDataFormat AreaProperties Property

Returns object, that represents aera properties. Read only.
Examples
The following code illustrates how to access AreaProperties properties and set color to IChartInterior.ForegroundColorIndex property:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create chart</para><para>IChart chart = worksheet.Charts.Add();</para><para>//Set range</para><para>chart.DataRange = worksheet.Range["A1:C2"];</para><para>//Set interior</para><para>IChartInterior interior = chart.Series[0].Format.AreaProperties;</para><para>//Set color</para><para>interior.ForegroundColor = Color.Red;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
IChartInterior AreaProperties { get; }

Property Value

Type: IChartInterior
See Also