How to remove cellSpacing. table CellSpacing is zero, not work

40 views Asked by At
Table tb = new Table();
tb.CellSpacing = 0;

I set table's CellSpacing 0. but line between cell and cell still remain. line is so thin. but still exist.

I want to remove that blank or line. How should I do?

1

There are 1 answers

1
Nemanja Vidačković On

Have you tried to change the border thickness ?

ThicknessConverter tc = new ThicknessConverter();

tb.BorderThickness = (Thickness)tc.ConvertFromString("0in");