The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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