摘要:
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( 阅读全文