Font 對象

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

多個對象

parchildFont

包含指定對象的字體屬性(字體名稱、字體大小和顏色等)。

Font 對象用法

可用 Font 屬性返回 Font 對象。下例設置數(shù)值軸標題的文字,并將字體設置為 10 磅的 Bookman,然后將單詞“millions”設置為傾斜。

With myChart.Axes(xlValue)

    .HasTitle = True

    With .AxisTitle

        .Caption = "Revenue (millions)"

        .Font.Name = "bookman"

        .Font.Size = 10

        .Characters(10, 8).Font.Italic = True

    End With

End With