How to determine that the text of a run is an exponent?

Hi :slight_smile:


I try to parse a word document. The text is : โ€œThis is the 1st paragraph โ€ฆโ€ with โ€œstโ€ as an exponent.
When I get the run corresponding to this exponent, what property can I use to determine that it is an exponent?

Thank you :slight_smile:


Fount it!


Just need to call run.getFont().getSuperScript() :slight_smile:

Hi Gary,


Thanks for your inquiry. Itโ€™s great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,