Click or drag to resize

IChartFormat PieSeriesLine Property

Represents series line properties. ( For pie of pie or pie of bar chart types only. ) Read only.
Examples
The following code illusrates how to set color to IChartBorder.Color property for ExcelChartType.PieOfPie chart using PieSeriesLine 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 and set range</para><para>IChart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["A1:F2"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.PieOfPie;</para><para>//Set pie series line border</para><para>IChartBorder border =chart.Series[0].Format.Options.PieSeriesLine;</para><para>//Set color</para><para>border.Color = 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
IChartBorder PieSeriesLine { get; }

Property Value

Type: IChartBorder
See Also