DocumentBase.DisableFeaturesIntroducedAfter 属性

获取或设置一个值,该值确定在指定版本的 Microsoft Office Word 之后引入的所有功能是否仅在该文档中禁用。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

语法

声明
Public Property DisableFeaturesIntroducedAfter As WdDisableFeaturesIntroducedAfter
public WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter { get; set; }

属性值

类型:Microsoft.Office.Interop.Word.WdDisableFeaturesIntroducedAfter
WdDisableFeaturesIntroducedAfter 值之一。

备注

在设置 DisableFeaturesIntroducedAfter 属性之前,必须先将 DisableFeatures 属性设置为 true。 否则,该设置将不生效,并且将保留在 Word 97 for Windows 的默认设置。

DisableFeaturesIntroducedAfter 属性只影响要设置属性的文档。 如果您希望为应用程序设置一个全局选项,以禁用所有文档的功能,请使用 DisableFeaturesIntroducedAfterbyDefault 属性。

示例

下面的代码示例对该文档禁用在 Word for Windows 95、Word 7.0 和 Word 7.0a 之后添加的所有功能。 若要使用此示例,请从文档级项目内的 ThisDocument 类中运行此示例。

Private Sub DocumentDisableFeaturesIntroducedAfter()
    If Me.DisableFeatures = True Then
        Me.DisableFeaturesIntroducedAfter = Word.WdDisableFeaturesIntroducedAfter.wd70
    Else
        Me.DisableFeatures = True
        Me.DisableFeaturesIntroducedAfter = Word.WdDisableFeaturesIntroducedAfter.wd70
    End If
End Sub 
private void DocumentDisableFeaturesIntroducedAfter()
{
    if (this.DisableFeatures == true)
    {
        this.DisableFeaturesIntroducedAfter = Word.
            WdDisableFeaturesIntroducedAfter.wd70;
    }
        else
    {
        this.DisableFeatures = true;
        this.DisableFeaturesIntroducedAfter = Word.
            WdDisableFeaturesIntroducedAfter.wd70;
    }
}

.NET Framework 安全性

请参见

参考

DocumentBase 类

Microsoft.Office.Tools.Word 命名空间