2012-08-16 27 views

回答

21

在iTextSharp的我用:

cell.Border = Rectangle.BOTTOM_BORDER | Rectangle.RIGHT_BORDER; 

你可以嘗試:

cell.setBorder(Rectangle.BOTTOM | Rectangle.RIGHT); 
+0

也適用於Java API。謝謝 – 2012-12-04 11:43:16

+0

謝謝你的回答。 「cell.setBorder(Rectangle.BOTTOM | Rectangle.RIGHT);」在Java版本中爲我工作 – 2014-10-08 13:44:07

+0

這適用於我。 – Dwhitz 2015-12-16 13:27:36

2

是的,它是可能的,Rectangle.BOTTOM = 2,Rectangle.TOP = 1,Rectangle.RIGHT = 8 ,Rectangle.LEFT = 4 所以對於右側和底部,嘗試cell.setBorder(10);它適用於我itext1.3

相關問題