Skip to main content

ControlBase.Font Property

Gets or sets the control font.

Namespace: DevExpress.Utils.Controls

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public override Font Font { get; set; }

Property Value

Type Description
Font

The control font.

Remarks

If a control that derives from this ControlBase class has its own Appearance properties section, ControlBase.Font is synchronized with AppearanceObject.Font.

Font myFont = new Font("Tahoma", 24f);

textEdit1.Properties.Appearance.Font = myFont;
//or
textEdit1.Font = myFont;
See Also