Class PlotArea (Word VBA)

The class PlotArea represents the plot area of a chart.

Class Chart gives access to class PlotArea.

To use a PlotArea class variable it first needs to be instantiated, for example

Dim paa as PlotArea
Set paa = ActiveDocument.Background.Chart.PlotArea

PlotArea class variables can be set using the Chart.PlotArea procedure.

Methods

ClearFormats - Clears the formatting of the object.

Select - Selects the object.

Properties

Format returns the line, fill, and effect formatting for the object.

Height returns or sets the height, in points, of the object.

InsideHeight returns or sets the inside height, in points, of the plot area.

InsideLeft returns or sets the distance, in points, from the chart edge to the inside left edge of the plot area.

InsideTop returns or sets the distance, in points, from the chart edge to the inside top edge of the plot area.

InsideWidth returns or sets the inside width, in points, of the plot area.

Left returns or sets the distance, in points, from the left edge of the object to the left edge of the chart area.

Name returns the name of the object.

Position returns or sets the position of the plot area on the chart.

Top returns or sets the distance, in points, from the top edge of the object to the top of the first row (on a worksheet) or the top of the chart area (on a chart).

Width returns or sets the width, in points, of the object.

ChartFormat - Provides access to the OfficeArt formatting for chart elements.