I use the spire.doc to read a docx file ,but I can not get one paragraph's ListFormat.CurrentListStyle ,the ListFormat.CurrentListStyle always return null , in fact some paragraph in the document has a ListStyle that i have set.
why this happened?
amy.zhao wrote:Hi,
Thanks for your interests in our Spire.Doc.
I tested a document with and paragraph.ListFormat.CurrentListStyle was correct.
Could you please provide us your document for investigation?
Thank you.
Best Regards,
Amy
E-iceblue support team
ParagraphStyle paraStyle = paragraph.GetStyle();
BuiltinStyle bstyle = Style.NameToBuiltIn(paraStyle.Name);
ListStyle listStyle =paraStyle.ListFormat.CurrentListStyle;
ListLevel listLevel = paraStyle.ListFormat.CurrentListLevel;
amy.zhao wrote:Hi,
I am glad that your issue has been resolved. Thanks for sharing your solution.
Regarding "provide us your document for investigation", I mean that provide us your .docx document you were using to help us do some investigation. So that we can work out solution for you soon.
Best Regards,
Amy
E-iceblue support team