Class ChartFormat (Word VBA)

Provides access to the OfficeArt formatting for chart elements. To use a ChartFormat class variable it first needs to be instantiated, for example


Dim cft as ChartFormat
Set cft = ActiveDocument.Background.Chart.ChartArea.Format

Adjustments

Returns an Adjustments object that contains a collection of adjustment values for the specified Chart Format object.


Dim adjsAdjustments As Adjustments
Set adjsAdjustments = ActiveDocument.Background.Chart.ChartArea.Format.Adjustments

AutoShapeType

Returns or sets the auto shape type of the specified object.


ActiveDocument.Background.Chart.ChartArea.Format.AutoShapeType =

Fill

Returns a FillFormat object for the parent chart element that contains fill formatting properties for the chart element.


Dim fftFill As FillFormat
Set fftFill = ActiveDocument.Background.Chart.ChartArea.Format.Fill

Glow

Returns the glow formatting properties for the chart element.

The glow effect adds a vibrant colored edge to graphics.


Dim gftGlow As GlowFormat
Set gftGlow = ActiveDocument.Background.Chart.ChartArea.Format.Glow

Line

Returns the line formatting properties for the specified chart element.

For a line, the LineFormat object represents the line itself; for a chart with a border, the LineFormat object represents the border.


Dim lftLine As LineFormat
Set lftLine = ActiveDocument.Background.Chart.ChartArea.Format.Line

PictureFormat

Returns a PictureFormat object for a specified chart that contains pictures.


Dim pftPictureFormat As PictureFormat
Set pftPictureFormat = ActiveDocument.Background.Chart.ChartArea.Format.PictureFormat

Shadow

Returns shadow formatting properties for the chart element.


Dim sftShadow As ShadowFormat
Set sftShadow = ActiveDocument.Background.Chart.ChartArea.Format.Shadow

SoftEdge

Returns the soft edge formatting for a shape.


Dim sefSoftEdge As SoftEdgeFormat
Set sefSoftEdge = ActiveDocument.Background.Chart.ChartArea.Format.SoftEdge

TextFrame2

Returns the text formatting for the specified chart element.


Dim tf2TextFrame2 As Office.TextFrame2
Set tf2TextFrame2 = ActiveDocument.Background.Chart.ChartArea.Format.TextFrame2

ThreeD

Returns the 3D-effect formatting properties for the specified chart.


Dim tdfThreeD As ThreeDFormat
Set tdfThreeD = ActiveDocument.Background.Chart.ChartArea.Format.ThreeD