Articles in this section
Category / Section

How can I include a custom font to the FontListComboBox dynamically?

1 min read

 A Custom font can be included to the font list combo box dynamically. The font source can be set to a path from the system. The following code shows how to browse the font and include it in the FontListComboBox.


[C#]

Syncfusion.Windows.Tools.Controls.FolderBrowser folderBrowser = new FolderBrowser(); 
if (folderBrowser.ShowDialog(this).Value) 
{ 
    pathTextBox.Text = folderBrowser.SelectedDirectory + @"\ "; 
    FontBox.FontsSource = pathTextBox.Text; 
}

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied