AxisTitle 對象

此頁沒有內(nèi)容條目
內(nèi)容

Chart

parchildAxes (Axis)

spaceparchildAxisTitle

spacespaceparchild多個對象

代表圖表中坐標(biāo)軸的標(biāo)題。

AxisTitle 對象用法

使用 AxisTitle 屬性可返回 AxisTitle 對象。下例設(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 時,AxisTitle 對象才存在,從而才能使用該對象。