iTextsharp, PdfPCell.VerticalAlignment and PdfPCell.HorizontalAlignment

前端 未结 4 624
再見小時候
再見小時候 2021-02-05 04:15

Im trying to figure out how to get my text inside a PdfPCell to show in the middle. I have tried many different options, like:

myCell.VerticalAlignment = Element.ALIG         


        
4条回答
  •  囚心锁ツ
    2021-02-05 04:29

    Jay Riggs solution started to work also for vertical alignment when I added:

    cell.UseAscender = true;

    http://www.afterlogic.com/mailbee-net/docs-itextsharp/html/0602b79e-ea9c-0c7d-c4b2-bc4b5f976f15.htm

提交回复
热议问题