Font Color

  • Thread starter Thread starter zidansoft
  • Start date Start date
Z

zidansoft

I have to check font color through automation,using TextRange to
getting font ,it is working properly..but
if single shape text has different color (as well as different
font )how i can manage it?any help really appriaciable..
 
I have to check font color through automation,using TextRange to
getting font ,it is working properly..but
if single shape text has different color (as well as different
font )how i can manage it?any help really appriaciable..

Can you rephrase the question or post a link to an example image of a slide
that's causing problems?

But maybe this is it; there may be more than one font, color, etc. in a single
text range. The text range will have an overall font but the user may have
overriddent that on parts of text within the range.

Use the Runs collection of the text range. If .Runs.Count = 1, then all text
in the range is identically formatted. If > 1, then there's some different
formatting and you'll need to iterate through the Runs collection.
 
Back
Top