Unable to vertically align text in table cell with itextsharp

后端 未结 3 714
别跟我提以往
别跟我提以往 2021-01-18 19:07

I can not figure out how to vertically align text in table cell. horizontal alignment is ok. I use itextsharp to generate pdf. Alignment should be applied to cells in table

3条回答
  •  悲哀的现实
    2021-01-18 19:46

    Use

    cell.VerticalAlignment = Element.ALIGN_MIDDLE; // or ALIGN_TOP or ALIGN_BOTTOM
    

    Also, you can set a default vertical alignment for all cells by setting

    kitosKalbosTable.DefaultCell.VerticalAlignment
    

提交回复
热议问题