Format related procedures in class PlotArea (Word VBA)

This page presents procedures from class PlotArea related to the theme Format: ClearFormats, Format, InsideHeight and InsideWidth

ClearFormats

Clears the formatting of the object.

ActiveDocument.Background.Chart.PlotArea.ClearFormats

Format

Returns the line, fill, and effect formatting for the object.

Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveDocument.Background.Chart.PlotArea.Format

InsideHeight

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

The plot area used for this measurement does not include the axis labels. The Height property for the plot area uses the bounding rectangle that includes the axis labels.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart 
 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 
 End If 
End With

InsideWidth

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

The plot area used for this measurement does not include the axis labels. The Width property for the plot area uses the bounding rectangle that includes the axis labels.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart 
 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 
 End If 
End With