Caption Property

Microsoft Graph Visual Basic

Caption Property

       

Returns or sets the title text for the object. Read/write String.

expression.Caption

expression   Required. An expression that returns one of the above objects.

Example

This example adds the title "Annual Salary Figures" to the chart.

myChart.HasTitle = True
myChart.ChartTitle.Caption = "Annual Salary Figures"