FontEdit Class

A font editor.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

Declaration

public class FontEdit :
    ComboBoxEdit
Public Class FontEdit
    Inherits ComboBoxEdit

Remarks

The FontEdit displays available fonts in the drop-down window and allows an end user to select a font.

FontEdit

TIP

The FontEdit class inherits its features from the ComboBoxEdit class.

Refer to the ComboBoxEdit class description for information on derived features and API.

Create a FontEdit

<Window ...
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">

<dxe:FontEdit Font="Arial"/>
...

Edit Value

The FontEdit value is specified by the EditValue of Font property. To respond to edit value changing, handle the BaseEdit.EditValueChanging and BaseEdit.EditValueChanged events.

Use the AllowConfirmFontUseDialog property to display a confirmation dialog window an end user tries to set a font which is not installed on the system.

See Also