Click or drag to resize

IChartFillBorder HasFormat3D Property

Gets a value indicating whether [has3d properties].
Examples
The following code illustrates the use of HasFormat3D 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["B2:C6"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.Column3DClustered;</para><para>//Create a fill border and set 3D formatting value</para><para>IChartFillBorder fillBorder = chart.ChartArea;</para><para>chart.ChartArea.Format3D.BevelTopType = XLSXChartBevelType.Slope;</para><para>//True if the chart element has 3D formatting</para><para>if (fillBorder.HasFormat3D){//Your Code Here}</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
bool HasFormat3D { get; }

Property Value

Type: Boolean
true if [has3d properties]; otherwise, false .
See Also