[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartLines

IChartLines Interface

Represents chart lines in a chart group.

This interface is used for chart-group line elements such as series lines, drop lines, and high-low lines. These lines connect related data points or series values and can be formatted through the returned IChartFormat object.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IChartLines
Public Interface IChartLines
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 15},
    {"Mar", 12}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.Line, 200, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns, true, true);
shape.Chart.ChartGroups[0].HasDropLines = true;
IChartLines chartLines = shape.Chart.ChartGroups[0].DropLines;
IChartFormat format = chartLines.Format;

Properties

Name Description
Format

Gets the IChartFormat object for this chart lines object.

Use the returned format object to access and modify the appearance of the chart lines, such as line color and line style.

Methods

Name Description
Delete()

Deletes this chart lines object.

After this method is called, the associated chart lines are removed from the parent chart element and are no longer shown.