Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Vertical alignment of Text inside Table cell

Vertical alignment of Text inside Table cell

New Discussion
Ryan
Ryan asked on Jan 5, 2009 3:37 PM

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.

Sign In to post a reply

Replies

  • 0
    Mike Saltzman
    Mike Saltzman answered on Jan 5, 2009 2:46 PM

    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. 

    • 0
      Ryan
      Ryan answered on Jan 5, 2009 3:37 PM

      Hi Mike

      I eventually thought as much , I added an IBand to the cell and worked with the IBand. That way I can use the IBand footer.

      Thanks.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Ryan
Favorites
0
Replies
2
Created On
Jan 05, 2009
Last Post
17 years, 2 months ago

Suggested Discussions

Created by

Created on

Jan 5, 2009 3:37 PM

Last activity on

Feb 24, 2026 2:42 PM