Set ZedGraph graph Winform font style is to avoid border

Scenes

Winforn ZedGraph set the properties of the graph, the axis attributes Scale Properties:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573

If you need the title of the axis of font size and style as well as to modify it, usually

// set the first Y axis title 
myPane.YAxis.Title.Text = " first Y axis title " ;
 // first Y axis title 
FontSpec myFont = new new FontSpec ( " Arial " , 10 , Color.Black , to false , to false , to false ); 
myPane.YAxis.Title.FontSpec = myFont;

 

But this will result in the title four weeks with a border, if you do not set the font will not have to set the font, but if we supposed.

 

 

Public concern number
overbearing program ape
acquisition-related programming e-books, tutorials and push for free download.
A large number of programming video tutorials: https://space.bilibili.com/164396311

achieve

// set the axis properties do not appear separately border 
myPane.XAxis.Title.FontSpec.Family = " Arial " ; 
myPane.XAxis.Title.FontSpec.Size = 10 ; 
myPane.XAxis.Title.FontSpec.IsBold = to false ;

 

Its font attributes is provided separately border effect does not occur,

Effect of contrast effect above the X-axis.

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/11466138.html
Recommended