Share via


_Document.CompatibilityMode Property

Returns a long that specifies the compatibility mode that Word 2010 uses when opening the document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property CompatibilityMode As Integer
    Get
'Usage
Dim instance As _Document
Dim value As Integer

value = instance.CompatibilityMode
int CompatibilityMode { get; }

Property Value

Type: System.Int32
Returns a Int32.

Remarks

Read-only. When you open a document in Word 2010 that was created in a previous version of Word, Compatibility Mode is turned on. Compatibility Mode ensures that no new or enhanced features in Word 2010 are available while working with a document, so that people who edit the document using previous versions of Word will have full editing capabilities.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace