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.v24.2.dll
NuGet Package: DevExpress.Wpf.RichEdit
#Declaration
public RichEditBaseValueSource FontSource { get; set; }
#Property Value
Type | Description |
---|---|
Rich |
A Rich |
Available values:
Name | Description |
---|---|
Auto | The property value is obtained from the corresponding property of the control if it is different from default. |
Document | The property value is obtained from the corresponding property of the document. |
Control | The property value is obtained from the corresponding property of the control. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Font |
---|---|
Rich |
|
#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 Rich
Important
Starting with v19.