Table of Contents

Interface IChartGridLine

Namespace
Spire.Xls.Core
Assembly
Spire.XLS.dll

Represent grid lines of the chart.

public interface IChartGridLine

Properties

Border

Gets line border. Read only. The following code illustrates use of Border property:

//Create worksheet
Workbook workbook = new Workbook();
workbook.LoadFromFile("Sample.xlsx");
Worksheet worksheet = workbook.Worksheets[0];

//Create chart and set range
IChart chart = worksheet.Charts.Add();
chart.DataRange = worksheet.Range["A1:C2"];

//Set value axis minor gridLines to visible
chart.PrimaryValueAxis.HasMinorGridLines = true;

//Get value axis minor gridlines
IChartGridLine gridLine = chart.PrimaryValueAxis.MinorGridLines;

Set minor gridlines broder properties
gridLine.Border.Color = Color.Red;

//Save to file
workbook.SaveToFile("Chart.xlsx");
ChartBorder Border { get; }

Property Value

ChartBorder

Fill

Represents XlsFill options. Read-only.

IShapeFill Fill { get; }

Property Value

IShapeFill

Format3D

Gets the chart3 D properties.

Format3D Format3D { get; }

Property Value

Format3D

The chart3 D properties.

Interior

Returns object, that represents area properties. Read-only.

IChartInterior Interior { get; }

Property Value

IChartInterior

LineProperties

Returns object, that represents line properties. Read-only.

ChartBorder LineProperties { get; }

Property Value

ChartBorder

Shadow

Gets the shadow properties.

ChartShadow Shadow { get; }

Property Value

ChartShadow

The shadow properties.