ComponentOne Reports for WinForms帮助文档
全部展开全部展开
全部折叠全部折叠

This topic shows how to change the Font in a single table cell, of a table column or of a table row.

Changing the Font in a Single Table Cell

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

To write code in Visual Basic

To write code in C#

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:

To write code in Visual Basic

To write code in C#

Changing the Font of a Table Row

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

To write code in Visual Basic

To write code in C#

What You've Accomplished

The following image shows how the table will appear, when you change the font in a single table cell, using the code given above. The text in cell (1,1) appears in 12 point, Dark Green, Bold Tahoma font:

The following image shows how the table will appear, when you change the font of a table column, using the code given above. The text in the first column appears in 12 point, Bold Arial font:

The following image shows how the table will appear, when you change the font of a table row. The text in the first row appears in 12 point, Bold Arial font:

 

 


产品网站:http://www.gcpowertools.com.cn  |  咨询热线:4006576008   |   ©2015 西安葡萄城