I'm implementing additional set and get methods for Run properties that I need 
(or might likely need) [it's not complete over the set of all run properties 
but it adds a lot more.]

The only one that has stymied me is underline color.

The underline color value is an RGB color string but the OOXML API doesn't seem 
to provide for it--I suspect it's a limitation in the class generation from the 
schema.

The CTUnderline API is:

        CTUnderline underline = (pr.getU() == null) ? pr.addNewU() : pr.getU();
        Object color = underline.getColor();

That is, underline.getColor() returns Object, not something more specialized.

In my tests, color is null (not a surprise).

So my question is: how do I set the color? Should I simply be constructing the 
XML or is there a better way?

Thanks,

Eliot
--
Eliot Kimber
http://contrext.com
 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to