Share via


ListObjectExtensions Class

Definition

Provides methods you can use to extend Microsoft Office Excel list objects by generating host controls for ListObject objects and by testing for the existence of the generated host controls.

public ref class ListObjectExtensions abstract sealed
public static class ListObjectExtensions
type ListObjectExtensions = class
Public Module ListObjectExtensions
Inheritance
ListObjectExtensions

Remarks

The ListObjectExtensions class contains extension methods that are designed to be accessed on Microsoft.Office.Interop.Excel.ListObject objects. For more information about extension methods, see Extension Methods and Extension Methods.

The extension methods in the ListObjectExtensions class are provided for backward compatibility with Office projects that you retarget from the .NET Framework 3.5 to the .NET Framework 4 or the .NET Framework 4.5. In new projects that target the .NET Framework 4 or the .NET Framework 4.5, you should call the GetVstoObject and HasVstoObject methods that are provided by the Globals.Factory object in your project. For more information, see Extending Word Documents and Excel Workbooks in VSTO Add-ins at Run Time and Programming Document-Level Customizations.

Methods

GetVstoObject(ListObject, ApplicationFactory)

Returns a ListObject host control that extends the functionality of the current ListObject object in an application-level add-in. Pass the Globals.Factory object in your project to the factory parameter.

GetVstoObject(ListObject, Factory)

Returns a ListObject host control that extends the functionality of the current ListObject object in a document-level customization. Pass the Globals.Factory object in your project to the factory parameter.

HasVstoObject(ListObject, ApplicationFactory)

Returns a value that indicates whether a ListObject host control has been created for the current ListObject object in an application-level add-in. Pass the Globals.Factory object in your project to the factory parameter.

HasVstoObject(ListObject, Factory)

Returns a value that indicates whether a ListObject host control has been created for the current ListObject object in a document-level customization. Pass the Globals.Factory object in your project to the factory parameter.

Applies to