Compartilhar via


IDocumentExtension Interface

Represents an extension of a Document object.

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

Syntax

'Declaration
<GuidAttribute("C57DD47E-97F4-4744-A191-819A6F3CFEAD")> _
Public Interface IDocumentExtension _
    Inherits IExtension, EntryPoint
[GuidAttribute("C57DD47E-97F4-4744-A191-819A6F3CFEAD")]
public interface IDocumentExtension : IExtension, 
    EntryPoint

The IDocumentExtension type exposes the following members.

Properties

  Name Description
Public property ExtensionBase Gets the object that is being extended by this IExtension. (Inherited from IExtension.)

Top

Methods

  Name Description
Public method BeginInit (Inherited from EntryPoint.)
Public method CreateRibbonExtensibilityObject Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.
Public method CreateRibbonObjects Returns an array of IRibbonExtension objects that represent the Ribbon (Visual Designer) items to display in Word at run time.
Public method EndInit (Inherited from EntryPoint.)
Public method FinishInitialization (Inherited from EntryPoint.)
Public method GetAutomationObject Called by the Visual Studio Tools for Office runtime to get an object that can be used by VBA code in the document that is associated with a document-level project.
Public method Initialize (Inherited from EntryPoint.)
Public method InitializeDataBindings (Inherited from EntryPoint.)
Public method OnShutdown (Inherited from EntryPoint.)
Public method OnStartup (Inherited from EntryPoint.)
Public method ProtectDocument Called by the Visual Studio Tools for Office runtime to give developers an opportunity to reapply password protection to the document in a document-level project after the cached data has been saved.
Public method RequestService Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.
Public method UnprotectDocument Called by the Visual Studio Tools for Office runtime to give developers an opportunity to remove password protection from the document in a document-level project and enable cached data to be saved.

Top

Remarks

The IDocumentExtension interface defines a set of members that extend the functionality of Document objects.

The IDocumentExtension interface is implemented by the DocumentBase class. This is the base class for the generated ThisDocument class in document-level projects. For more information, see Programming Document-Level Customizations.

See Also

Reference

Microsoft.Office.Tools.Word Namespace