Expand my Community achievements bar.

How to change Font Color by script?

Avatar

Level 1

Hi,all:

I am a newbie in this forums,

I already found the way to change the font facetype like this script:

xfa.Text1.resolveNode("caption.#font").typeface  =  "Times New Roman";

but still not found the way to change the font color by script.

Anyidea? thank you!

2 Replies

Avatar

Level 10

Hi,

The following Adobe guide is very useful for scripting against objects:

http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

For example, chaning the colour of the caption to red would be:

Text1.caption.font.fill.color.value = "255,0,0"

Good luck,

Niall

Avatar

Level 1

Thank you!

The answer is very helpful to me!

Thanks again!