07 2018 档案
摘要:Graphics graphics = CreateGraphics(); SizeF sizeF = graphics.MeasureString(字符串, new Font("宋体", 9)); MessageBox.Show(string.Format("字体宽度:{0},高度:{1}", s
阅读全文
摘要:public void DrawText(Graphics g, Pen blackPen, float fFontHeight) { SolidBrush mybrush = new SolidBrush(Color.White); Font myfont = new Font("黑体", fFontHeight); PointF mypoi...
阅读全文
摘要:char[] arr = "显示的字符串".ToCharArray(); Array.Reverse(arr); string s = new string(arr); e.Graphics.DrawString(s, new Font("宋体", 12, FontStyle.Regular), n
阅读全文
摘要:仅当使用了列列表并且 IDENTITY_INSERT 为 ON 时,才能为表'Address'中的标识列指 解决办法,将主键的ID自增长先设置为false
阅读全文