大家好,欢迎来到IT知识分享网。 private void splitContainer2_Panel1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawString(“Network”, new Font(“Verdana”, 12), new SolidBrush(Color.Red), new PointF(1.0f, 1.0f));
}
private void splitContainer2_Panel2_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawString(“Parameter”, new Font(“Verdana”, 12), new SolidBrush(Color.Red), new PointF(1.0f, 1.0f));
}
private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
//System.Drawing.Font font1=new System.Drawing.Font;
//System.Drawing.Brush brush1=new System.Drawing.Brush;
g.DrawString(“Drawing”, new Font(“Verdana”, 12), new SolidBrush(Color.Red),new PointF(1.0f, 1.0f));
//需要象vc中,否则刷新后就无显示了,double buffer的影响呢??
Pen pen = new Pen(Color.Black, 3);
PointF[] points =
{
new PointF(10.0F, 10.0F),
new PointF(50.0F, 40.0F),
new PointF(160.0F, 80.0F)
};
g.DrawLines(pen, points);
}
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/10049.html