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

CompatibilitySettings.CompatibilityMode Property

Specifies the document compatibility with different Microsoft Word versions.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

CompatibilityMode CompatibilityMode { get; set; }
Property CompatibilityMode As CompatibilityMode

Property Value

Type Description
CompatibilityMode

One of the CompatibilityMode enumeration values identifying the compatibility mode.

Property Paths

You can access this nested property as listed below:

Object Type Path to CompatibilityMode
Document
.CompatibilitySettings.CompatibilityMode

Remarks

Compatibility settings contained in the loaded document are retained when the document is saved in .DOCX (OpenXml) format. If the document does not contain compatibility settings and they are not explicitly specified in code, compatibility settings are not written in the exported document.

The CompatibilityMode option addresses the situation when the document in the Microsoft Word after loading and saving using the Rich Text Editor looks differently.

The purpose of the CompatibilityMode option is to keep the original layout when the document is loaded, saved and subsequently loaded in another text editor.

See Also