简体   繁体   中英

How can I set Text Color (and Background color) in PPT 2007

I am trying to set the color of a text in PPT from my C++ project.

The attribute TextRange->Font->Color cannot be modified ?!

I should feel much obliged if you can provide me any further help.

Thanks.

Font.Color is an object, not a property.

To change the color you need to change Font.Color.RGB to a long representing the color you want. Or change Font.Color.ObjectThemeColor to a long representing the index of the theme color you want.

Ah. But I'm speaking in VBA-tongues. My Longs are probably your Integers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM