[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegendEntry.Format

Format Property

Format

Gets the chart format of the legend entry.

Declaration
IChartFormat Format { get; }
ReadOnly Property Format As IChartFormat
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 10},
    {"B", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"]);
ILegendEntry legendEntry = chart.Legend.LegendEntries[0];
IChartFormat format = legendEntry.Format;
format.Fill.Color.RGB = Color.Red;