Share via


_Document.SetCompatibilityMode Method

Sets the compatibility mode for the document.

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

Syntax

'Declaration
Sub SetCompatibilityMode ( _
    Mode As Integer _
)
'Usage
Dim instance As _Document
Dim Mode As Integer

instance.SetCompatibilityMode(Mode)
void SetCompatibilityMode(
    int Mode
)

Parameters

  • Mode
    Type: System.Int32
    Specifies which version of Word to approximate. Use a constant from the WdCompatibilityMode enumeration as an argument for this parameter.

Remarks

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