Compartir a través de


DocumentBase.DisableFeaturesIntroducedAfter Property

Gets or sets a value that determines whether all features introduced after a specified version of Microsoft Office Word are disabled in the document only.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Property DisableFeaturesIntroducedAfter As WdDisableFeaturesIntroducedAfter
public WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.WdDisableFeaturesIntroducedAfter
One of the WdDisableFeaturesIntroducedAfter values.

Remarks

The DisableFeatures property must be set to true prior to setting the DisableFeaturesIntroducedAfter property. Otherwise, the setting will not take effect and will remain at its default setting of Word 97 for Windows.

The DisableFeaturesIntroducedAfter property only affects the document for which the property is set. If you want to set a global option for the application to disable features for all documents, use the DisableFeaturesIntroducedAfterbyDefault property.

Examples

The following code example disables all features added after Word for Windows 95, versions 7.0 and 7.0a, for the document. To use this example, run it from the ThisDocument class in a document-level project.

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 Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace