Chart.PlotArea 属性 (Project)

获取代表图表绘图区的 Office.IMsoPlotArea 对象。 只读 IMsoPlotArea

语法

表达式PlotArea

expression:一个表示 Chart 对象的变量。

示例

以下示例将绘图区的内部高度设置为比之前设置的要高 30 磅。

Sub SetChartPlotAreaHeight()
    Dim chartShape As Shape
    Dim reportName As String
    Dim insideHeight As Double
    
    reportName = "Simple scalar chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    insideHeight = chartShape.Chart.PlotArea.InsideHeight
    chartShape.Chart.PlotArea.InsideHeight = insideHeight + 30
End Sub

属性值

IMSOPLOTAREA

另请参阅

Chart 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。