.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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

Declaration

[DefaultValue(true)]
public static bool WriteDefaultRtfFontSize { get; set; }
<DefaultValue(True)>
Public Shared Property WriteDefaultRtfFontSize As Boolean

Property Value

Type Description
Boolean

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