ListObjectCollection.Add

Add(int, int, int, int, bool)

Adds a ListObject to the worksheet.

public int Add(int startRow, int startColumn, int endRow, int endColumn, bool hasHeaders)
ParameterTypeDescription
startRowInt32The start row of the list range.
startColumnInt32The start row of the list range.
endRowInt32The start row of the list range.
endColumnInt32The start row of the list range.
hasHeadersBooleanWhether the range has headers.

Return Value

The index of the new ListObject

See Also


Add(string, string, bool)

Adds a ListObject to the worksheet.

public int Add(string startCell, string endCell, bool hasHeaders)
ParameterTypeDescription
startCellStringThe start cell of the list range.
endCellStringThe end cell of the list range.
hasHeadersBooleanWhether the range has headers.

Return Value

The index of the new ListObject

See Also