Click or drag to resize

IChartGridLine Interface

Represent grid lines of the chart.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public interface IChartGridLine

The IChartGridLine type exposes the following members.

Properties
Name Description
Public property Code example Border
Gets line border. Read only.
Examples
The following code illustrates use of Border 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:C2"];</para><para>//Set value axis minor gridLines to visible</para><para>chart.PrimaryValueAxis.HasMinorGridLines = true;</para><para>//Get value axis minor gridlines</para><para>IChartGridLine gridLine = chart.PrimaryValueAxis.MinorGridLines;</para><para>Set minor gridlines broder properties</para><para>gridLine.Border.Color = Color.Red;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>
Public property Fill
Represents XlsFill options. Read-only.
Public property Format3D
Gets the chart3 D properties.
Public property Interior
Returns object, that represents area properties. Read-only.
Public property LineProperties
Returns object, that represents line properties. Read-only.
Public property Shadow
Gets the shadow properties.
Top
See Also