DocumentBase.DisableFeaturesIntroducedAfter 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值确定在指定版本的 Microsoft Office Word 之后引入的所有功能是否仅在该文档中禁用。
public Microsoft.Office.Interop.Word.WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter { get; set; }
属性值
WdDisableFeaturesIntroducedAfter 值之一。
示例
下面的代码示例将禁用在 Word for Windows 95,版本7.0 和 7.0 a 之后添加的所有功能。 若要使用此示例,请在 ThisDocument 文档级项目的类中运行它。
private void DocumentDisableFeaturesIntroducedAfter()
{
if (this.DisableFeatures == true)
{
this.DisableFeaturesIntroducedAfter = Word.
WdDisableFeaturesIntroducedAfter.wd70;
}
else
{
this.DisableFeatures = true;
this.DisableFeaturesIntroducedAfter = Word.
WdDisableFeaturesIntroducedAfter.wd70;
}
}
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
注解
DisableFeatures设置属性之前,必须将属性设置为 true DisableFeaturesIntroducedAfter 。 否则,设置将不会生效,并将保留为 Word 97 for Windows 的默认设置。
DisableFeaturesIntroducedAfter属性只影响为其设置了属性的文档。 如果要设置应用程序的全局选项以禁用所有文档的功能,请使用 DisableFeaturesIntroducedAfterbyDefault 属性。