返回或設(shè)置文本背景類型。本屬性僅應(yīng)用于圖表中的文本。XlBackground 類型,可讀寫。
XlBackground 可為以下 XlBackground 常量之一。 |
xlBackgroundAutomatic |
xlBackgroundOpaque xlBackgroundTransparent |
expression Background
expression 必需。該表達(dá)式返回“應(yīng)用于”列表中的對象之一。
本示例添加圖表標(biāo)題,并設(shè)置標(biāo)題的字體大小和標(biāo)題的背景類型。
With myChart
.HasTitle = True
.ChartTitle.Text = "1995 Rainfall Totals by Month"
With .ChartTitle.Font
.Size = 10
.Background = xlBackgroundTransparent
End With
End With