Dark-Mode-Forms icon indicating copy to clipboard operation
Dark-Mode-Forms copied to clipboard

List control column header text is not centred vertically

Open RickyDivjakovski opened this issue 10 months ago • 0 comments

List control column header text is not centred vertically, simple fix for this is adding the following line in DarkModeCS

  1. sf.Alignment = StringAlignment.Center;
  2. sf.LineAlignment = StringAlignment.Center; // < This will align the text vertically
  3. e.Graphics.FillRectangle(backBrush, e.Bounds);
  4. e.Graphics.DrawString(e.Header.Text, lView.Font, foreBrush, e.Bounds, sf);

RickyDivjakovski avatar May 03 '25 01:05 RickyDivjakovski