代表圖表中坐標(biāo)軸的標(biāo)題。
使用 AxisTitle 屬性可返回 AxisTitle 對(duì)象。下例設(shè)置數(shù)值軸標(biāo)題的文字,并將字體設(shè)置為 10 磅的 Bookman。
With myChart.Axes(xlValue)
.HasTitle = True
With .AxisTitle
.Caption = "Revenue (millions)"
.Font.Name = "bookman"
.Font.Size = 10
End With
End With
只有當(dāng)指定坐標(biāo)軸的 HasTitle 屬性為 True 時(shí),AxisTitle 對(duì)象才存在,從而才能使用該對(duì)象。