In order to display the properties and fields of my class in the PropertyGrid, I set the PropertyGrid attributes for them. For example :

[ LocalizedDisplayName("font"), LocalizedDescription("fontValueScale"), Editor(typeof (MyFontEditor), typeof (UITypeEditor)), TypeConverter(typeof (FontTypeConverter)), DefaultValue(typeof(Font), "Times New Roman,9,Regular") ] public Font Font { get { return _font; } set { _font = value; Refresh?.Invoke(); } } 

How to set the default value for this type of property? The current version does not work.

  • hmm, strange situation: if I write the font size not as a whole, then all the rules - Naf

0