[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGridlines

IGridlines Interface

Represents major or minor gridlines on a chart axis.

Use this interface to access the formatting of chart axis gridlines and to navigate to the owning IAxis. Gridlines are typically obtained from MajorGridlines or MinorGridlines.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IGridlines
Public Interface IGridlines
Examples
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 250, 20, 360, 230);
worksheet.Range["A1:B4"].Value = new object[,] {{"Month", "Sales"}, {"Jan", 10}, {"Feb", 25}, {"Mar", 18}};
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
IAxis valueAxis = shape.Chart.Axes.Item(AxisType.Value);
valueAxis.HasMajorGridlines = true;
IGridlines gridlines = valueAxis.MajorGridlines;
gridlines.Format.Line.Color.RGB = Color.Gray;

Properties

Name Description
Format

Gets the format of the gridlines.

Parent

Gets the IAxis object that contains these gridlines.

Use this property to access the parent axis of major or minor gridlines on a chart.