Changing the Alignment of a Table
To change the alignment of a table, set the FlowAlign property for the table. For example, add the following code to the Form_Load event before the Generate method to center the table on the page:
table.Style.FlowAlign = FlowAlignEnum.Center
• C#
table.Style.FlowAlign = FlowAlignEnum.Center;
What You've Accomplished
The table appears centered on the page:
|