Hi,
I’ve run into an issue where when you get borders(f.e ParagraphFormat.Borders.Bottom) that have not been set to anything yet they are set to None. This can result in borders from document styles being overridden by Direct Formatting border:none simply by getting the border property, which is quite unexpected. This can be seen in this example:
BorderNoneOnGetBorder.zip (65.7 KB)
If the line that gets the border is commented out the direct formatting with border:none disappears and the document looks as expected. Also when we unzip the “TestBeforeMerge.docx” file we can see that the border:none on border bottom is already set by the getter, but the information about it is not displayed just yet in MS Word.
Could you please take a look?
Thank you,
Bartosz