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.v20.1.dll

Declaration

[Browsable(false)]
public override Font Font { get; set; }
<Browsable(False)>
Public Overrides Property Font As Font

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.

Implements

DevExpress.XtraRichEdit.Internal.IInnerRichEditControlOwner.Font
See Also