vincenzo Posted January 14, 2008 Report Share Posted January 14, 2008 I can underline a Chart Title in design mode, but I am unable to do this in code.(Font.Underline is a read only property!) Chartx.Titles[0].Font.Underline = FontStyle.Underline; // This fails to compile Link to comment Share on other sites More sharing options...
maximop Posted January 14, 2008 Report Share Posted January 14, 2008 Yes, these properties are read-only. In order to change the font settings, you will have to initialize the Font object to the desired settings. You can do as follows: Chart1.Titles[0].Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Underline); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.