_Document.SetCompatibilityMode(Int32) 方法

定义

设置文档的兼容模式。Sets the compatibility mode for the document.

public:
 void SetCompatibilityMode(int Mode);
public void SetCompatibilityMode (int Mode);
abstract member SetCompatibilityMode : int -> unit
Public Sub SetCompatibilityMode (Mode As Integer)

参数

Mode
Int32

指定要靠近的 Word 版本。Specifies which version of Word to approximate. 将枚举中的常量 WdCompatibilityMode 用作此参数的参数。Use a constant from the WdCompatibilityMode enumeration as an argument for this parameter.

注解

当您在 Word 2010 中打开在 Word 的早期版本中创建的文档时,兼容模式处于打开状态。When you open a document in Word 2010 that was created in a previous version of Word, Compatibility Mode is turned on. 兼容模式可确保在使用文档时,Word 2010 中没有新的或增强的功能可用,因此使用早期版本的 Word 编辑文档的用户将具有完全编辑功能。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.

适用于