FontEdit Class
The editor to select a font from a dropdown list.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
[SmartTagFilter(typeof(FontEditFilter))]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "FontEdit")]
public class FontEdit :
ComboBoxEdit
Remarks
The FontEdit control displays available fonts in the dropdown window and allows an end-user to select a specific font. When a font is selected, its name is assigned to the editor’s BaseEdit.EditValue property.
The editor’s properties can be accessed via the FontEdit.Properties object, which represents an instance of the RepositoryItemFontEdit class.
The FontEdit control supports the MRU functionality. When a specific font is selected in the dropdown, it’s added to the MRU list, and displayed at the top of the dropdown window. The number of items in the MRU list is specified by the RepositoryItemFontEdit.RecentlyUsedItemCount property. Setting this property to 0 disables the MRU functionality.
The MRU functionality is not supported when the FontEdit object is used for in-place editing within container controls (bars, grids, etc).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FontEdit class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.