Condividi tramite


Document.Extension Property

Definition

Gets a custom extension for this Document object.

public:
 property Microsoft::Office::Tools::Word::IDocumentExtension ^ Extension { Microsoft::Office::Tools::Word::IDocumentExtension ^ get(); };
public Microsoft.Office.Tools.Word.IDocumentExtension Extension { get; }
member this.Extension : Microsoft.Office.Tools.Word.IDocumentExtension
Public ReadOnly Property Extension As IDocumentExtension

Property Value

A custom extension for this Document object.

Remarks

A custom extension is an implementation of the IDocumentExtension interface in a Word solution that is created by using the Office development tools in Visual Studio. In document-level projects, this property returns an instance of the generated ThisDocument class by default. The ThisDocument class implements the IDocumentExtension interface through the DocumentBase class. For more information, see Programming Document-Level Customizations.

Applies to