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.
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.