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

Changing the Font of a Table Column

To change the font of a table column, set the Font property for the column. Add the following code to the Form_Load event before the Add and Generate methods:

      Visual Basic

table.Cols(0).Style.Font = New Font("Arial", 12, FontStyle.Bold)

      C#

table.Cols[0].Style.Font = new Font("Arial", 12, FontStyle.Bold);

 What You've Accomplished

The text in the first column appears in 12 point, Bold Arial font:

 


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