Compartilhar via


Workbook.Extension Property

Definition

Gets a custom extension for this Workbook object.

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

Property Value

A custom extension for this Workbook object.

Remarks

A custom extension is an implementation of the IWorkbookExtension interface in an Excel 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 ThisWorkbook class by default. The ThisWorkbook class implements the IWorkbookExtension interface through the WorkbookBase class. For more information, see Programming Document-Level Customizations.

Applies to