Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ControlBase.Font Property

Gets or sets the control font.

Namespace: DevExpress.Utils.Controls

Assembly: DevExpress.Utils.v24.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