Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 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

RichEditControl.Font Property

Gets or sets the font of the text that has no direct font formatting or style applied.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.RichEdit, DevExpress.Win.TreeMap

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override Font Font { get; set; }

#Property Value

Type Description
Font

A Font object.

#Remarks

The Font property actually specifies or retrieves the AppearanceObject.Font property of the appearance object, accessible via the RichEditAppearance.Text property.

The Font sets the font face, size and style for the text with an unspecified character formatting. Then, when a document is saved, such characters are saved as directly formatted. Font settings, once set using the Font property, are retained when the saved document is loaded again, and are not dependent on the current Font settings.

The font options specified as the Font property value is used only if it’s different from the document’s default font settings (returned by the CharacterPropertiesBase object properties). Set the RichEditBehaviorOptions.FontSource to RichEditBaseValueSource.Control to use only the Font value.

See Also