Skip to content
本页内容

Format (属性)

返回 ChartFormat 对象。只读。

示例

python
#本示例在 Chart1 中的绘图区右侧偏移 5 磅添加阴影
def test():
    plotArea = Application.Charts.Item("Chart1").ChartObjects(1).Chart.PlotArea
    plotArea.Format.Shadow.Visible = True
    plotArea.Format.Shadow.OffsetX = 5
python
#下例将 Sheet1 上第一个图表的绘图区背景色设为红色
def test():
    plotArea = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.PlotArea
    plotArea.Format.Fill.BackColor.RGB = RGB(255, 0, 0)