共用方式為


PlotArea.InsideWidth 屬性 (Excel)

傳回出圖區域的內部寬度 ( 以點為單位)。 讀取/寫入的 Double

語法

表達。內部寬度

代表 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 支援與意見反應