Back to Devexpress

FontEdit Class

windowsforms-devexpress-dot-xtraeditors-c9b3866d.md

latest3.0 KB
Original Source

FontEdit Class

The editor to select a font from a dropdown list.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class FontEdit :
    ComboBoxEdit
vb
Public Class FontEdit
    Inherits 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).

Implements

IXtraResizableControl

Inheritance

Show 14 items

Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl ControlBase BaseControl BaseEdit TextEdit ButtonEdit PopupBaseEdit PopupBaseAutoSearchEdit ComboBoxEdit FontEdit

See Also

FontEdit Members

RepositoryItemFontEdit

DevExpress.XtraEditors Namespace