יום רביעי 11 יולי 2012 14:15
I would like to find out what the style is of each paragraph in a Word doc.
Currently I am doing this by:
StringValue style = p.ParagraphProperties.ParagraphStyleId.Val; Console.WriteLine(style.ToString());
However I have noticed that sometimes a paragraph which is simply text (not a header for example) will not have a style. Why is this? Shouldn't it have the style of "Normal", or is it safe to assume that if it has no style then it is the "Normal" style.
Also does anyone know if it is possible to pull out which StyleSet was used in the doc?
יום חמישי 12 יולי 2012 04:49מנחה דיון
Thanks for posting in the MSDN Forum.
It's based on my experience that styledefinitionpart is not a option part of a docx document. So it can be omitted at some where.
Have a good day,
Tom Xu [MSFT]
MSDN Community Support | Feedback to us
- סומן כתשובה על-ידי Tom_Xu_WXModerator יום שני 16 יולי 2012 07:13