[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartBars.Format

Format Property

Format

Gets the format of the chart bars.

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