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.