Chart for WinForms Task-Based Help / Setting the Font Style for Data Labels
In This Topic
Setting the Font Style for Data Labels
In This Topic

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