[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartLines.Format

Format Property

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.

Declaration
IChartFormat Format { get; }
ReadOnly Property Format As IChartFormat
Examples
worksheet.Range["A1:C4"].Value = new object[,] {
    {"Month", "North", "South"},
    {"Jan", 10, 14},
    {"Feb", 18, 12},
    {"Mar", 15, 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnStacked, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C4"], RowCol.Columns, true, true);
IChartGroup chartGroup = chart.ChartGroups[0];
chartGroup.HasSeriesLines = true;
IChartLines seriesLines = chartGroup.SeriesLines;
IChartFormat format = seriesLines.Format;