To set the font style for the data labels for example, to bold use the following code:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
label.Style.Font = New System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Bold)
|
To write code in C#
| C# |
Copy Code
|
label.Style.Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Bold);
|
See Also