ReoGrid
ReoGrid copied to clipboard
How do I change the font size for row and column headers?
How do I change the font size for row and column headers? vb.net thanks!
How to adjust the font?
you can use reoGridControl.CurrentWorksheet.SetScale to workaround or you need use relfect such as
Assembly asm = reoGridControl.GetType().Assembly;
Type gdiR = asm.GetType("unvell.ReoGrid.WinForm.GDIRenderer");
FieldInfo field = gdiR.GetField("HeaderFont", BindingFlags.Static | BindingFlags.NonPublic);
field.SetValue(null, new Font(
"微软雅黑", 8));
you can use reoGridControl.CurrentWorksheet.SetScale to workaround or you need use relfect such as
Assembly asm = reoGridControl.GetType().Assembly; Type gdiR = asm.GetType("unvell.ReoGrid.WinForm.GDIRenderer"); FieldInfo field = gdiR.GetField("HeaderFont", BindingFlags.Static | BindingFlags.NonPublic); field.SetValue(null, new Font( "微软雅黑", 8));
the result shows gdiR is null, how do i fix it? i using version↓