[]
Represents a unit label on a chart axis.
Use this interface to access and customize the label shown for an axis display unit, including its text, font, text frame, and chart formatting. An instance is typically obtained from DisplayUnitLabel for a value axis.
public interface IDisplayUnitLabel
Public Interface IDisplayUnitLabel
worksheet.Range["A1:B3"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 1200},
{"Feb", 1800}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 220);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IAxis valueAxis = shape.Chart.Axes.Item(AxisType.Value);
valueAxis.DisplayUnit = DisplayUnit.Hundreds;
IDisplayUnitLabel displayUnitLabel = valueAxis.DisplayUnitLabel;
displayUnitLabel.Text = "Hundreds";
| Name | Description |
|---|---|
| Font | Gets the IFontFormat object that represents the font settings of this display unit label. Use the returned IFontFormat object to read or modify the font applied to the display unit label text. |
| 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. |
| Parent | Gets the parent axis of this display unit label. The returned IAxis object represents the axis that owns this display unit label. |
| Text | Gets or sets the text of this display unit label. Use this property to retrieve the current caption shown for the display unit label on an axis. |
| TextFrame | Gets the ITextFrame object for the display unit label. |
| Name | Description |
|---|---|
| Delete() | Deletes this display unit label from its parent axis. After this method is called, the display unit label is no longer shown on the axis. |