Dark-Mode-Forms
Dark-Mode-Forms copied to clipboard
List control column header text is not centred vertically
List control column header text is not centred vertically, simple fix for this is adding the following line in DarkModeCS
- sf.Alignment = StringAlignment.Center;
- sf.LineAlignment = StringAlignment.Center; // < This will align the text vertically
- e.Graphics.FillRectangle(backBrush, e.Bounds);
- e.Graphics.DrawString(e.Header.Text, lView.Font, foreBrush, e.Bounds, sf);