Table of contents

绘图区对象 (PowerPoint)PlotArea Object (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
2 参与人员

代表图表的绘图区。Represents the plot area of a chart.


该区域为绘制图表数据的区域。二维图表中的绘图区包含数据标志、网格线、数据标签、趋势线和可选的置于图表区内的图表项。三维图表的绘图区中除包含上述各项外,还在图表中包含背景墙、基底、坐标轴、坐标轴标题和刻度线标签。This is the area where your chart data is plotted. The plot area on a 2-D chart contains the data markers, gridlines, data labels, trendlines, and optional chart items placed in the chart area. The plot area on a 3-D chart contains all the above items plus the walls, floor, axes, axis titles, and tick-mark labels in the chart.

绘图区的图表区域的周围。二维图表的图表区包含坐标轴、 图表标题、 坐标轴标题和图例。三维图表的图表区包含图表标题和图例。有关设置格式的图表区域的信息,请参阅图表区对象。The plot area is surrounded by the chart area. The chart area on a 2-D chart contains the axes, the chart title, the axis titles, and the legend. The chart area on a 3-D chart contains the chart title and the legend. For information about formatting the chart area, see the ChartArea object.


请注意 尽管下面的代码适用于 Microsoft Word 中,您可以随时修改将其应用到 PowerPoint。Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

使用绘图区属性以返回绘图区对象。下面的示例为活动文档中第一个图表的图表区设置虚线的边框,并将在绘图区周围放置点划线的边框。Use the PlotArea property to return a PlotArea object. The following example places a dashed border around the chart area of the first chart in the active document, and then places a dotted border around the plot area.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart

            .ChartArea.Border.LineStyle = xlDash

            .PlotArea.Border.LineStyle = xlDot

        End With

    End If

End With

另请参阅See also


PowerPoint 对象模型引用PowerPoint Object Model Reference

© 2018 Microsoft