Diagonal Cell Borders


#1

I have the latest Word dll version (2.5.2.0) and am creating a table with DocBuilder. Apparently, you’ve just added DiagonalUp and DiagonalDown borders to the borders collection. The problem is that I can’t turn them off!

If I make them White, I see a White “X” in every cell that has something in it. Linestyle.None does nothing. System.Drawing.Color.Empty does nothing. How do I make them disappear completely without affecting the text or picture within the cell?


#2

If you use Borders.LineStyle etc then it will set only top, left, bottom and right borders.

I mean don't use foreach Border in Borders.