共用方式為


Chart.ChartArea Property (Excel)

Returns a ChartArea object that represents the complete chart area for the chart. Read-only.

Syntax

expression .ChartArea

expression A variable that represents a Chart object.

Example

This example sets the chart area interior color of Chart1 to red and sets the border color to blue.

With Charts("Chart1").ChartArea 
 .Interior.ColorIndex = 3 
 .Border.ColorIndex = 5 
End With

請參閱

概念

Chart Object

Chart Object Members