Align right and set the right padding to some suitable value. ----- Original Message ----- From: "Matt Kowske" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, October 28, 2005 4:54 PM Subject: [iText-questions] Centered & aligned text
> I'm trying to center a column of numbers in a table. I realize I can > set the alignment to Element.ALIGN_CENTER, but this centers each cell > individually, so decimal points in my numbers no longer line up. I > guess what I'm looking for is more of a tab stop in the center of the > cell. Is there a way to do this, other than inserting some spaces of > text before or after the number string? Here's an example of what I'm > looking for: > > | 12.00 | > | 13.00 | > | 6.00 | > > Hopefully that will line up, you'll need to view it with a fixed width > font obviously. Anyway, the decimal points should be aligned, but the > data overall centered in the column. Thanks. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
