Change text or font color (colour)

G

geejay

Hi

I would like to change the colour of text that exists within a shape.

I have tried using set_charprops() but that only allows me to use Visio
built-in colours.

I have also tried the cell indices:

(short) Visio.VisSectionIndices.visSectionObject,
(short)Visio.VisRowIndices.visRowCharacter,
(short)Visio.VisCellIndices.visCharacterColor

but this didn't work either (using force formula).

Any ideas?

Thanks

g
 
G

geejay

OK, I managed to get this working by changing the indices to:

(short) Visio.VisSectionIndices.visSectionCharacter,
(short)Visio.VisRowIndices.visRowCharacter,
(short)Visio.VisCellIndices.visCharacterColor

I can then use the normal RGB() formula to set a custom colour.

I wonder why Visio.VisSectionIndices.visSectionObject works for other types
of cells?

Cheers
 
Top