.net - How can i manipulate the Font Properties in c# on a run time -


i new on trying manipulate font property of text or chart title in c# windows form

so far tried ones:

font font = new system.drawing.font(fontstyle.bold) <-- wouldn't debugging  chart1.title[0].font = new font(chart1.title[0].font,  chart1.title[0].font.style | fontstyle.bold); <-- got pass debugging no effect  chart1.title[0].font(fontstyle.bold); <-- 1 pass debugging no effect. 

i got hands on trying set it's text bold in windows form i've done @ web apps pretty simplier title / or text

how set it's propert title font change text bold instead of normal fontstyle?

try this:

   title title = chart1.titles.add("test");    title.font = new system.drawing.font("arial", 16, fontstyle.bold);    title.forecolor = system.drawing.color.fromargb(0, 0, 205); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -