ListObject

Overview

ListObject is a class in Aspose.Cells FOSS for .NET.

Represents an Excel table (structured reference / ListObject).

Properties

NameTypeAccessDescription
DisplayNamestringRead/WriteGets or sets the user‑defined name of the table
CommentstringRead/WriteGets or sets a comment associated with the table
StartRowintReadGets or sets the zero‑based index of the table’s first row
StartColumnintRead
EndRowintRead
EndColumnintReadGets or sets the zero‑based index of the table’s last column
ShowHeaderRowboolRead/WriteGets or sets whether the table displays a header row
ShowTotalsboolRead/Write
TableStyleTypeTableStyleTypeRead/WriteGets or sets the predefined style type applied to the table
TableStyleNamestringRead/WriteGets or sets the custom style name applied to the table
ShowTableStyleFirstColumnboolRead/WriteGets or sets whether the first column uses the table style
ShowTableStyleLastColumnboolRead/Write
ShowTableStyleRowStripesboolRead/WriteGets or sets whether row stripes are shown in the table style
ShowTableStyleColumnStripesboolRead/Write
ListColumnsListColumnCollectionReadGets the collection of columns defined in the table

Methods

SignatureDescription
Resize(startRow: int, startColumn: int, endRow: int, endColumn: int, hasHeaders: bool)Resizes the table to the specified range, rebuilding columns from header cells.
ShowAutoFilter()Shows the autoFilter drop-down buttons on the table header row.
RemoveAutoFilter()Hides the autoFilter drop-down buttons from the table header row.
ConvertToRange()Removes the table structure, leaving the cell data in place.