Skip to content
本页内容

PlotVisibleOnly (属性)

如果仅绘制可见单元格,则该值为 True。如果可见单元格和隐藏单元格都绘制,则该值为 Falsebool 类型,可读写。

示例

python
#本示例设置图表工作表 Chart1 为仅绘制可见单元格
def test():
    Application.Charts.Item("Chart1").PlotVisibleOnly = True
python
#本示例判断工作表Sheet1第一个内嵌图表绘制单元格的方法,并通知用户
def test():
    chart = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart
    if chart.PlotVisibleOnly:
        print("只绘制可见单元格")
    else:
        print("绘制可见和隐藏单元格")