共用方式為


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
    Get
    Set
public WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter { get; set; }

屬性值

型別:Microsoft.Office.Interop.Word.WdDisableFeaturesIntroducedAfter
其中一個 WdDisableFeaturesIntroducedAfter 值。

備註

您必須先將 DisableFeatures 屬性設定為 true,才能設定 DisableFeaturesIntroducedAfter 屬性。 否則,設定將不會生效,而仍維持 Windows Word 97 的預設設定。

DisableFeaturesIntroducedAfter 屬性只會影響屬性已設定的文件。 如果要設定全域選項,讓應用程式停用所有文件的功能,請使用 DisableFeaturesIntroducedAfterbyDefault 屬性。

範例

下列程式碼範例會停用 Windows 95 的 Word 7.0 和 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 命名空間