Back to Devexpress

CompatibilitySettings.CompatibilityMode Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-compatibilitysettings-09fc0afb.md

latest2.8 KB
Original Source

CompatibilitySettings.CompatibilityMode Property

Specifies the document compatibility with different Microsoft Word versions.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
CompatibilityMode

One of the CompatibilityMode enumeration values identifying the compatibility mode.

|

Available values:

NameDescription
ModeNotSpecified

Compatibility mode is not specified.

| | Mode11 |

The resulting document is compatible with Microsoft Word® 2003.

| | Mode12 |

The resulting document is compatible with Microsoft Word® 2007.

| | Mode14 |

The resulting document is compatible with Microsoft Word® 2010.

| | Mode15 |

The resulting document is compatible with Microsoft Word® 2013.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

CompatibilitySettings Interface

CompatibilitySettings Members

DevExpress.XtraRichEdit.API.Native Namespace