Font Color

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

Steve Rindsberg

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top