Grid cell fonts

It would really be nice if the appearance of the cells can be set by the Windows.Drawing.Font.FamilyName, Font.Style and Font.Size So get a constructor GridFontInfo(System.Drawing.Font f) If I use the FontDialog control and try to pass this to the Appearance Cell.Font, it''s a challenge to find out whic Facename (?) are supported. What is the best and easiest way for this Have a GridFontDialog control ? Marco

2 Replies

AD Administrator Syncfusion Team January 22, 2004 03:21 PM UTC

We''ll add such a ctor. Really makes sense. In the meantime you need to set these values in order to initialize a GridFontInfo from a Font object: GridFontInfo gridFont = new GridFontInfo(); gridFont.Facename = font.FontFamily.Name; gridFont.Size = font.Size; gridFont.Unit = font.Unit; gridFont.FontStyle = font.Style; Stefan


ME Marco Ensing February 1, 2004 03:29 PM UTC

Thanks Stefan, Keep up the good work. >We''ll add such a ctor. Really makes sense. > >In the meantime you need to set these values in order to initialize a GridFontInfo from a Font object: > >GridFontInfo gridFont = new GridFontInfo(); >gridFont.Facename = font.FontFamily.Name; >gridFont.Size = font.Size; >gridFont.Unit = font.Unit; >gridFont.FontStyle = font.Style; > >Stefan >

Loader.
Up arrow icon