Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
765
Vertical alignment of Text inside Table cell
posted

Hi

I have a table with cells. I want to align some text in the middle center of the cell and some more text at the bottom of the cell (footer) and in between I might also have some more content

For some reason IText  doesnt do the Vertical alignment only the horizontal.

IText text = cell.AddText(); text.Alignment.Horizontal = Alignment.Center;

text.Alignment.Vertical = Alignment.Middle; ???? Doesnt work

The difficult part is the alignment at the bottom of the cell. I dont know in advance how much space is already taken up by other content in the cell so I cant use a gap or anything. What is the best way to align text vertically in a cell , especially at the bottom of the cell.

thanks.

Parents
  • 469350
    Verified Answer
    Offline posted

    I don't think there's any way to do this with just text elements. You probably need to use an ITable or IGrid to align everything where you want it. 

Reply Children
No Data