Class ChartFormat (PowerPoint 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 = ActiveWindow.RangeFromPoint.Chart.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 = ActiveWindow.RangeFromPoint.Chart.Format.Adjustments

AutoShapeType

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


ActiveWindow.RangeFromPoint.Chart.Format.AutoShapeType = msoShapeMixed

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 = ActiveWindow.RangeFromPoint.Chart.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 Office.GlowFormat
Set gftGlow = ActiveWindow.RangeFromPoint.Chart.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 = ActiveWindow.RangeFromPoint.Chart.Format.Line

PictureFormat

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


Dim pftPictureFormat As PictureFormat
Set pftPictureFormat = ActiveWindow.RangeFromPoint.Chart.Format.PictureFormat

Shadow

Returns shadow formatting properties for the chart element.


Dim sftShadow As ShadowFormat
Set sftShadow = ActiveWindow.RangeFromPoint.Chart.Format.Shadow

SoftEdge

Returns the soft edge formatting for a shape.


Dim sefSoftEdge As Office.SoftEdgeFormat
Set sefSoftEdge = ActiveWindow.RangeFromPoint.Chart.Format.SoftEdge

TextFrame2

Returns the text formatting for the specified chart element.


Dim tf2TextFrame2 As TextFrame2
Set tf2TextFrame2 = ActiveWindow.RangeFromPoint.Chart.Format.TextFrame2

ThreeD

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


Dim tdfThreeD As ThreeDFormat
Set tdfThreeD = ActiveWindow.RangeFromPoint.Chart.Format.ThreeD