## ListObjectCollection::Add(int32_t, int32_t, int32_t, int32_t, bool) method


Adds a [ListObject](../../listobject/) to the worksheet.

```cpp
int32_t Aspose::Cells::Tables::ListObjectCollection::Add(int32_t startRow, int32_t startColumn, int32_t endRow, int32_t endColumn, bool hasHeaders)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startRow | int32_t | The start row of the list range. |
| startColumn | int32_t | The start row of the list range. |
| endRow | int32_t | The start row of the list range. |
| endColumn | int32_t | The start row of the list range. |
| hasHeaders | bool | Whether the range has headers. |

## ReturnValue

The index of the new [ListObject](../../listobject/)

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ListObjectCollection](../)
* Namespace [Aspose::Cells::Tables](../../)
* Library [Aspose.Cells for C++](../../../)
## ListObjectCollection::Add(const U16String\&, const U16String\&, bool) method


Adds a [ListObject](../../listobject/) to the worksheet.

```cpp
int32_t Aspose::Cells::Tables::ListObjectCollection::Add(const U16String &startCell, const U16String &endCell, bool hasHeaders)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startCell | const U16String\& | The start cell of the list range. |
| endCell | const U16String\& | The end cell of the list range. |
| hasHeaders | bool | Whether the range has headers. |

## ReturnValue

The index of the new [ListObject](../../listobject/)

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [ListObjectCollection](../)
* Namespace [Aspose::Cells::Tables](../../)
* Library [Aspose.Cells for C++](../../../)
## ListObjectCollection::Add(const char16_t*, const char16_t*, bool) method


Adds a [ListObject](../../listobject/) to the worksheet.

```cpp
int32_t Aspose::Cells::Tables::ListObjectCollection::Add(const char16_t *startCell, const char16_t *endCell, bool hasHeaders)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startCell | const char16_t* | The start cell of the list range. |
| endCell | const char16_t* | The end cell of the list range. |
| hasHeaders | bool | Whether the range has headers. |

## ReturnValue

The index of the new [ListObject](../../listobject/)

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ListObjectCollection](../)
* Namespace [Aspose::Cells::Tables](../../)
* Library [Aspose.Cells for C++](../../../)
