_Document.Compatibility Property 

Determines if the specified compatibility option is enabled.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim _Document1 As _Document

Dim key As WdCompatibility
Dim returnValue As Boolean
returnValue = _Document1.Compatibility(key)

Dim sampleValue As Boolean
_Document1.Compatibility(key) = sampleValue

Syntax

Property Compatibility( _
    <InAttribute()> ByVal Type As WdCompatibility _
) As Boolean
bool this[
    [In] WdCompatibility Type
] {get; set;}
property Boolean Compatibility{
    Boolean get();
    Void set(Boolean);
}
public boolean get_Item(
    /*in*/WdCompatibility Type
);
public void set_Item(
    /*in*/WdCompatibility Type
boolean);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.

Parameters

Remarks

This property returns True if the compatibility option specified by the Type argument is enabled, and False if not. Compatibility options affect how a document is displayed in Microsoft Word.

Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

_Document Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

_Document Members