Caption Property
Applies To
AxisTitle object, ChartTitle object, DataLabel object.
Description
Returns text with one of several different meanings, depending on the object type to which Caption is applied. Read/write String.
| Object type | Meaning |
|
| AxisTitle | The axis title text |
| ChartTitle | The chart title text |
| DataLabel | The data label text |
See Also
Text property.
Example
This example adds the title "Annual Salary Figures" to the chart.
myChart.HasTitle = True
myChart.ChartTitle.Caption = "Annual Salary Figures"