Excel) (PlotArea.InsideWidth 属性

返回绘图区域的内部宽度( 以磅为单位)。 读/写 Double

语法

表达式InsideWidth

表达式 表示 PlotArea 对象的变量。

备注

此处所度量的绘图区不包括坐标轴标签。 绘图区的 Width 属性所度量的矩形区域包括坐标轴标签。

示例

此示例在 Chart1 上的绘图区域内部绘制一个虚线矩形。

With Charts("chart1") 
 Set pa = .PlotArea 
 With .Shapes.AddShape(msoShapeRectangle, _ 
 pa.InsideLeft, pa.InsideTop, _ 
 pa.InsideWidth, pa.InsideHeight) 
 .Fill.Transparency = 1 
 .Line.DashStyle = msoLineDashDot 
 End With 
End With

支持和反馈

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