We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Converting fonts to fonts !?!

Thread ID:





4757 May 29,2003 03:21 PM UTC May 29,2003 04:57 PM UTC WinForms 1
Tags: GridControl
Olivier Choquette
Asked On May 29, 2003 03:21 PM UTC

Is there an (easy) way to convert System.Drawing.Font objects to GridFontInfo objects. I want to do this because i want the user to choose his font through a regular FontDialog (i think that the FontListBox and FontComboBox aren't user friendly enough.) thanks Olivier

Administrator [Syncfusion]
Replied On May 29, 2003 04:57 PM UTC

System.Drawin.Font has several properties such as FontStyle, Name and others. To initialize a GridFontInfo from such a font just set these properties manually in the GridFontInfo object. Example: System.Drawing.Font font; style.Font.FontStyle = font.FontStyle; style.Font.Size = font.SizeInPoints; style.Font.FaceName = font.Name; Stefan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon