How to determine all available styles in document and assign specific style to text

Dec 22, 2015 at 11:35 PM
I am new to docx, sorry if this has already been asked. I went through the docx examples but I can't seem to find a way of listing the styles available for a given document. For example the document could be created from a template with custom styles.

I also need to switch styles. For example find all text with a given style and replace by another one.

Thanks for your help!