[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDisplayUnitLabel.Format

Format Property

Format

Gets the IChartFormat object for this display unit label.

Use the returned format object to access and modify the appearance of the display unit label, display unit label, such as its fill and line formatting.

Declaration
IChartFormat Format { get; }
ReadOnly Property Format As IChartFormat
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 1200},
    {"Feb", 2400}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, worksheet.Range["A1:B3"]).Chart;
IAxis axis = chart.Axes.Item(AxisType.Value, AxisGroup.Primary);
axis.DisplayUnit = DisplayUnit.Thousands;
IDisplayUnitLabel displayUnitLabel = axis.DisplayUnitLabel;
IChartFormat format = displayUnitLabel.Format;
format.Fill.Color.RGB = Color.Blue;