ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Printing and Previewing Task-Based Help > Formatting Tables > Changing the Alignment of a Table

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:

      Visual Basic

table.Style.FlowAlign = FlowAlignEnum.Center

      C#

table.Style.FlowAlign = FlowAlignEnum.Center;

 What You've Accomplished

The table appears centered on the page:

 


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.