DXRichEditBehaviorOptions.FontSource Property
Gets or sets the default font settings of the RichEditControl. This is a dependency property.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
RichEditBaseValueSource | A RichEditBaseValueSource enumeration value indicating the font settings’s provider. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to FontSource |
---|---|
RichEditControl |
|
Remarks
Set the FontSource property to the RichEditBaseValueSource.Control to use the RichEditControl.FontFamily, RichEditControl.FontSize, RichEditControl.FontStyle properties’ values as the text’s font settings. The RichEditBaseValueSource.Auto value indicates that if the Font control’s properties have values different from the default, these values are applied. The font settings are applied to the text with no direct font formatting or style applied.
Note
If you use an integrated Ribbon UI, the font options specified by the RichEditControl.FontFamily, RichEditControl.FontSize, RichEditControl.FontStyle properties are applied to the ribbon as well. We recommend you to specify the document’s default settings (returned by the Document.DefaultCharacterProperties property) to change the text appearance.