Update Recently Used Fonts list

This article shows how you can add font to the Recently Used Fonts section. This is useful when you want to preserve the Recently Used Fonts in the application settings and then restore them in the next session.

To update the fonts yu can use the UpdateRecentlyUsedFonts method and pass the font names to it.

Update the recently used fonts

string[] fonts = new string[] { "Segoe UI", "Segoe Scrip", "Consolas", "Arial" };
var element = this.radFontDropDownList1.PopupEditorElement as RadFontPopupEditorElement;
element.UpdateRecentlyUsedFonts(fonts);

Dim fonts() As String = {"Segoe UI", "Segoe Scrip", "Consolas", "Arial"}
Dim element = TryCast(Me.RadFontDropDownList1.PopupEditorElement, RadFontPopupEditorElement)
element.UpdateRecentlyUsedFonts(fonts)

In this article
Not finding the help you need? Improve this article