[]
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.
IChartFormat Format { get; }
ReadOnly Property Format As IChartFormat
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;