Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

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

RichEditControlCompatibility.WriteDefaultRtfFontSize Property

Gets or sets whether the information about the default font size (12pt) should be written to the RTF document code.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(true)]
public static bool WriteDefaultRtfFontSize { get; set; }

#Property Value

Type Default Description
Boolean true

true, to enable writing the information about the default RTF font size; otherwise, false.

#Remarks

The RichEditControl considers the 12pt font size as the default in the RTF document format, regardless of the value specified using the Document.DefaultCharacterProperties settings.

By default, the information about this font size is added to the output document code (the \fs24 keyword). To disable it, set the WriteDefaultRtfFontSize property to false.

See Also