如果为 True,则禁用在 DisableFeaturesIntroducedAfter 属性指定的版本之后的所有功能。默认值是 False。Boolean 类型,可读写。
expression.DisableFeatures
expression 必需。该表达式返回“应用于”列表中的一个对象。
DisableFeatures 属性只影响设置属性的文档。如果计划与使用 Microsoft Word 较早版本的用户共享文档,请使用该属性,这样就无需禁用其 Word 版本不支持的文档功能。
使用 DisableFeaturesByDefault 属性在所有文档中禁用指定版本之后的功能。
本示例在当前文档中禁用在 Word for Windows 95 、7.0 和 7.0a 版本之后添加的功能,全局默认设置保持不变。
Sub FeaturesDisable()
With ThisDocument
'Checks whether features are disabled
If .DisableFeatures = True Then
'If they are, disables all features after Word for Windows 95
.DisableFeaturesIntroducedAfter = wd70
Else
'If not, turns on the disable features option and disables
'all features introduced after Word for Windows 95
.DisableFeatures = True
.DisableFeaturesIntroducedAfter = wd70
End If
End With
End Sub