Gets a value that indicates whether the specified compatibility option is enabled.
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Property ValueType: Microsoft.Office.Tools.Word.Document_CompatibilityType
true if the specified compatibility option is enabled; otherwise, false.
The property is intended to be used with the following parameter.
One of the WdCompatibility values that specifies the compatibility option to check for.
If you use the property without specifying a parameter, it returns a Document_CompatibilityType object that is not intended to be used directly from your code.
Compatibility options affect how a document is displayed in Microsoft Office Word. Some of the WdCompatibility values might not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.
The following code example suppresses the space before a paragraph if the paragraph is located after a hard page break. This example is for an application-level add-in.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.