Axis.HasTitle Property
True if the axis or chart has a visible title. Read/write Boolean.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property HasTitle As Boolean
Get
Set
'Usage
Dim instance As Axis
Dim value As Boolean
value = instance.HasTitle
instance.HasTitle = value
bool HasTitle { get; set; }
Property Value
Type: System.Boolean
Remarks
An axis title is represented by an [AxisTitle#SameCHM] object.
Examples
This example adds an axis label to the category axis for the first chart in the active document.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
With .Chart.Axis(xlCategory)
.HasTitle= True
.AxisTitle.Text = "July Sales"
End With
End If
End With