We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Extract User Style Name

Hi,

How I can extract the user style name with aspose.words. I'm using DocumentVisitor to extract text and i have to distinguish them by the user style.

How can I extract the name of the user defined style name

Thanks

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Maybe you should use ParagraphFormat.StyleName. See the following link for more information:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.paragraphformat.stylename.html

Also you can try Font.StyleName

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.font.stylename.html

Hope this helps.

Best regards.