WorksheetBase.ListObjects Property
Gets a collection of Microsoft.Office.Interop.Excel.ListObject objects in the worksheet.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Public ReadOnly Property ListObjects As ListObjects
Get
public ListObjects ListObjects { get; }
Property Value
Type: Microsoft.Office.Interop.Excel.ListObjects
The Microsoft.Office.Interop.Excel.ListObjects collection for the worksheet.
Examples
The following code example uses the ListObjects property to add a Microsoft.Office.Interop.Excel.ListObject to the current worksheet.
This example is for a document-level customization.
Trin_ExcelWorkSheet#17
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.