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

ChartCharacters Object (PowerPoint)

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

Represents characters in an object that contains text.

Remarks

The ChartCharacters object lets you modify any sequence of characters contained in the full text string.

Use Characters ( Start, Length ), where Start is the start character number and Length is the number of characters, to return a ChartCharacters object.

Example

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

The Characters property is necessary only when you need to change some of an object's text without affecting the rest (you cannot use the Characters property to format a portion of the text if the object does not support rich text). To change all the text at the same time, you can usually apply the appropriate method or property directly to the object. The following example formats the contents of the chart title for the first chart in the active document as italic.

With ActiveDocument.InlineShapes(1).Chart

    .ChartTitle.Characters.Font.Italic = True

End With

See also

Concepts

PowerPoint Object Model Reference

© 2017 Microsoft