AxisTitle 对象

         
Chart
Axes (Axis)
AxisTitle
多个对象

代表图表中坐标轴的标题。

AxisTitle 对象用法

使用 AxisTitle 属性可返回 AxisTitle 对象。下例设置数值轴标题的文字,并将字体设置为 10 磅的 Bookman。

With myChart.Axes(xlValue)
    .HasTitle = True
    With .AxisTitle
        .Caption = "Revenue (millions)"
        .Font.Name = "bookman"
        .Font.Size = 10
    End With
End With

说明

只有当指定坐标轴的 HasTitle 属性为 True 时,AxisTitle 对象才存在,从而才能使用该对象。