IChartGridLine Interface |
Namespace: Spire.Xls.Core
The IChartGridLine type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
Border |
Gets line border. Read only.
![]()
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>
|
![]() |
Fill |
Represents XlsFill options. Read-only.
|
![]() |
Format3D |
Gets the chart3 D properties.
|
![]() |
Interior |
Returns object, that represents area properties. Read-only.
|
![]() |
LineProperties |
Returns object, that represents line properties. Read-only.
|
![]() |
Shadow |
Gets the shadow properties.
|