Table of contents
TOC
Collapse the table of content
Expand the table of content

ChartFont Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Contains the font attributes (font name, font size, color, and so on) for an object chart.

Remarks

If you do not want to format all the text in an AxisTitle, ChartTitle, DataLabel, or DisplayUnitLabel object the same way, use the Characters property of that object to first return a subset of the text as a ChartCharacters object. Then use the Font property of the ChartCharacters object to return a ChartFont object you can use to format the subset of text, as needed.

Example

Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example formats the title of the first chart as bold. Use the Font property to return the ChartFont object.

With ActiveDocument.InlineShapes(1).Chart

    .AxisTitle.Font.Bold = True

End With

See also

Concepts

PowerPoint Object Model Reference

© 2018 Microsoft