我试图弄清楚如何让PdfPCell中的文本显示在中间。我尝试了很多不同的选择,例如:myCell.VerticalAlignment=Element.ALIGN_MIDDLE;myCell.VerticalAlignment=PdfPCell.ALIGN_MIDDLE;myCell.VerticalAlignment=Rectangle.ALIGN_MIDDLE;Noneofthatworksforme.VerticalAlignmenttakesanint,soItriedtomakealoop,toseeificouldfindtherightnumber,buteverythin