全部显示

DisableFeaturesIntroducedAfter 属性

       

仅对该文档禁用指定的 Microsoft Word 版本后引入的所有功能。WdDisableFeaturesIntroducedAfter,可读写。

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