Click or drag to resize

IChartSerieDataFormat BarTopType Property

Represents the top data format.
Examples
The following code illustrates how to set ExcelTopFormat.Sharp to BarShapeTop 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 chart type</para><para>chart.ChartType = ExcelChartType.Bar3DStacked;</para><para>//Set Bar shape base</para><para>chart.Series[0].Format.BarTopType = TopFormatType.Sharp;</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
TopFormatType BarTopType { get; set; }

Property Value

Type: TopFormatType
See Also