2012年3月12日
摘要: private void listboxbatch_DrawItem(object sender, DrawItemEventArgs e) { e.DrawBackground(); e.DrawFocusRectangle(); //让文字位于Item的中间 float difH = (e.Bounds.Height - e.Font.Height) / 2; RectangleF rf = new RectangleF(e.Bounds.X, e.Bounds.Y + difH, e.Bounds.Width, e.Font.Height); e.Graphics.DrawString( 阅读全文
posted @ 2012-03-12 18:10 Glyson 阅读(529) 评论(0) 推荐(0) 编辑