Hi Jesse,
Yes, we do have options to set text alignment properties for individual table cells. Use the following code to set text alignment.
// Set cell text alignment
table.Rows[0].Cells[0].Style.TextAlignment =TextAlignment.Left;
// Set cell line alignment.
table.Rows[0].Cells[0].Style.LineAlignment =LineAlignment.Middle;
// Set header cell text alignment.
table.Header[0].Cells[j].Style.TextAlignment =TextAlignment.Center;
table.Header[0].Cells[j].Style.LineAlignment =LineAlignment.Middle;
Here is a sample for your reference:
FormatTables.zip
Thanks,
Ajish.
>I found out how to do it for the whole table (the DefaultCellStyle.TextAlignment property); how about for individual cells?