Free Support Forum - aspose.com

Vertical Alignment of Text in a table

Hi,

I am trying to vertically align the text to top in the table. I used following code. But it is not aligining properly. Can you please tell me how to do it.







PatientID
Mark Smith

Thanks

mamatha

Hi Mamatha,

In order to set the vertical alignment as TOP, please try using VerticalAlignment propoerty inside a particular table cell. Please take a look over following XML in which I have set the VerticalAlignment of one table cell as TOP and other has Bottom. For your reference, I have also attached the resultant PDF that I have generated.

[XML]
<?xml version="1.0" encoding="utf-8"?>













PatientID




Mark Smith







Thank you it worked.