[]
Represents a table object on a worksheet.
public interface ITable
Filters a list using the IAutoFilter (read-only).
IAutoFilter AutoFilter { get; }
Gets or sets whether to generate columns automatically while binding data.
bool AutoGenerateColumns { get; set; }
Gets or sets binding path of current table.
string BindingPath { get; set; }
Returns an ITableColumns collection that represents all the columns in the ITable object.
ITableColumns Columns { get; }
Gets or sets the comment associated with the table object.
string Comment { get; set; }
Returns the IRange object that represents the range that contains the data area in the table between the header row and the insert row.
IRange DataRange { get; }
Gets or sets the display name for the specified ITable.
string DisplayName { get; set; }
Gets or sets whether to add/delete entire rows on data binding.
bool ExpandBoundRows { get; set; }
Returns the IRange object that represents the range of the header row for a table.
IRange HeaderRange { get; }
Gets or sets the name of the ITable object.
string Name { get; set; }
Returns the IRange object that represents the range to which the specified table object applies.
IRange Range { get; }
Returns the ITableRows that represents all the rows of data in the ITable object.
ITableRows Rows { get; }
Gets or sets whether the AutoFilter is displayed.
bool ShowAutoFilter { get; set; }
Gets or sets whether the table filter button is visible.
bool ShowAutoFilterDropDown { get; set; }
Gets or sets whether the header information should be displayed for the specified ITable object (read or write).
bool ShowHeaders { get; set; }
Gets or sets if the column stripes table style is used for the specified ITable object (read or write).
bool ShowTableStyleColumnStripes { get; set; }
Gets or sets if the first column is formatted for the specified ITable object (read or write).
bool ShowTableStyleFirstColumn { get; set; }
Gets or sets if the last column is displayed for the specified ITable object (read or write).
bool ShowTableStyleLastColumn { get; set; }
Gets or sets if the row stripes table style is used for the specified ITable object (read or write).
bool ShowTableStyleRowStripes { get; set; }
Gets or sets whether the total row is visible.
bool ShowTotals { get; set; }
Gets the sort column or columns, and sort order for the ITable collection.
ISort Sort { get; }
Gets or sets the table style for the specified ITable object (read or write).
ITableStyle TableStyle { get; set; }
IRange TotalsRange { get; }
Convert the range of cells that made up the table to a regular range of data.
void ConvertToRange()
Deletes the ITable object and clears the cell data from the worksheet.
void Delete()
Generate table from Json string.
void FromJson(string json)
json
stringThe JSON string representing the table.
The Resize method allows the ITable object to be resized over a new range. No cells are inserted or moved.
NOTE: The headers must remain in the same row, and the resulting table range must overlap the original table range.
void Resize(IRange range)
Generate json string from table.
string ToJson()
The JSON string representing the table.