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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Converting fonts to fonts !?!

Thread ID:

Created:

Updated:

Platform:

Replies:

4757 May 29,2003 03:21 PM UTC May 29,2003 04:57 PM UTC WinForms 1
loading
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

CONFIRMATION

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.

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

;