Udostępnij za pośrednictwem


Document.DisableFeaturesIntroducedAfter Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property DisableFeaturesIntroducedAfter As WdDisableFeaturesIntroducedAfter
'Usage
Dim instance As Document 
Dim value As WdDisableFeaturesIntroducedAfter 

value = instance.DisableFeaturesIntroducedAfter

instance.DisableFeaturesIntroducedAfter = value
[BrowsableAttribute(false)]
public WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter { get; set; }
[BrowsableAttribute(false)]
public:
property WdDisableFeaturesIntroducedAfter DisableFeaturesIntroducedAfter {
    WdDisableFeaturesIntroducedAfter get ();
    void set (WdDisableFeaturesIntroducedAfter value);
}
public function get DisableFeaturesIntroducedAfter () : WdDisableFeaturesIntroducedAfter 
public function set DisableFeaturesIntroducedAfter (value : WdDisableFeaturesIntroducedAfter)

Property Value

Type: 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.

This example is for a document-level customization.

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

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace