Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to change the size and font of LegendText

var legend = new Legend();
           legend.LegendStyle = LegendStyle.Row;
           legend.Docking = Docking.Bottom;
           legend.IsDockedInsideChartArea = false;
           chart1.Legends.Add(legend);
           chart1.Series[0].LegendText = Real Sheet;
           chart1.Series[1].LegendText = Refrence Sheet;
Posted

1 solution

Try this:
C#
legend.Font = new Font(legend.Font.FontFamily, 12); // choose a size
 
Share this answer
 
Comments
FarhanShariff 2-Apr-14 9:37am    
Works perfectly Thank Mr.FoX
Thomas Daniels 2-Apr-14 9:39am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900