仅对该文档禁用指定的 Microsoft Word 版本后引入的所有功能。WdDisableFeaturesIntroducedAfter,可读写。
WdDisableFeaturesIntroducedAfter 可以是下列 WdDisableFeaturesIntroducedAfter 常量之一: |
wd70 指定 Word for Windows 95 的 7.0 和 7.0a 版。 |
wd70FE 指定 Word for Windows 95 的 7.0 和 7.0a 版,亚洲版。 |
wd80 指定 Word 97 for Windows。默认。 |
expression.DisableFeaturesIntroducedAfter
expression 必需。该表达式返回“应用于”列表中的一个对象。
设置 DisableFeaturesIntroducedAfter 属性之前,必须先将 DisableFeatures 属性设为 True。否则,该设置无效,并保持其默认值 Word 97 for Windows。
DisableFeaturesIntroducedAfter 属性仅影响该属性所设置的文档。如果要设置应用程序的全局选项以禁用所有文档的功能。可使用 DisableFeaturesIntroducedAfterByDefault 属性。
本示例仅对当前文档禁用 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