[]
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.
public interface IChartLines
Public Interface IChartLines
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;
| 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. |
| 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. |