
## HtmlTableLoadOptionCollection class

Represents the table options when importing HTML.

```javascript
class HtmlTableLoadOptionCollection implements Iterable<HtmlTableLoadOption>;
```


## Constructors

| Constructor | Description |
| --- | --- |
| [constructor()](#constructor--)| Default Constructor. |

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [tableToListObject](#tableToListObject--)| boolean | Indicates whether generate list objects from imported tables. The default value is false. |

## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the [HtmlTableLoadOption](../htmltableloadoption/) element at the specified index. |
| [getTableToListObject()](#getTableToListObject--)| <b>@deprecated.</b> Please use the 'tableToListObject' property instead. Indicates whether generate list objects from imported tables. The default value is false. |
| [setTableToListObject(boolean)](#setTableToListObject-boolean-)| <b>@deprecated.</b> Please use the 'tableToListObject' property instead. Indicates whether generate list objects from imported tables. The default value is false. |
| [add(HtmlTableLoadOption)](#add-htmltableloadoption-)| Adds one HtmlTableLoadOption into this collection. |
| [add(number)](#add-number-)| Add a HtmlTableLoadOption to the list. |
| [add(string)](#add-string-)| Add a HtmlTableLoadOption to the list. |
| [add(number, number)](#add-number-number-)| Add a HtmlTableLoadOption to the list. |
| [add(string, number)](#add-string-number-)| Add a HtmlTableLoadOption to the list. |
| [add(number, number, number)](#add-number-number-number-)| Add a HtmlTableLoadOption to the list. |
| [add(string, number, number)](#add-string-number-number-)| Add a HtmlTableLoadOption to the list. |
| [addTableLoadOption(HtmlTableLoadOption)](#addTableLoadOption-htmltableloadoption-)| Adds one HtmlTableLoadOption into this collection. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |

## \[Symbol.iterator\](): Iterator\<HtmlTableLoadOption\>

Returns an iterator over the items in the collection. Enables use of `for...of`, spread syntax, and `Array.from()`.



### constructor() {#constructor--}

Default Constructor.

```javascript
constructor();
```


### tableToListObject {#tableToListObject--}

Indicates whether generate list objects from imported tables. The default value is false.

```javascript
tableToListObject : boolean;
```


### get(number) {#get-number-}

Gets the [HtmlTableLoadOption](../htmltableloadoption/) element at the specified index.

```javascript
get(index: number) : HtmlTableLoadOption;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The zero based index of the element. |

**Returns**

The element at the specified index.

### getTableToListObject() {#getTableToListObject--}

<b>@deprecated.</b> Please use the 'tableToListObject' property instead. Indicates whether generate list objects from imported tables. The default value is false.

```javascript
getTableToListObject() : boolean;
```


### setTableToListObject(boolean) {#setTableToListObject-boolean-}

<b>@deprecated.</b> Please use the 'tableToListObject' property instead. Indicates whether generate list objects from imported tables. The default value is false.

```javascript
setTableToListObject(value: boolean) : void;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | The value to set. |

### add(HtmlTableLoadOption) {#add-htmltableloadoption-}

Adds one HtmlTableLoadOption into this collection.

```javascript
add(item: HtmlTableLoadOption) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [HtmlTableLoadOption](../htmltableloadoption/) | one HtmlTableLoadOption |

**Returns**

the index of the added item

**Remarks**

NOTE: This member is now obsolete. Instead, please use AddTableLoadOption() method. This method will be removed 6 months later since December 2025. Aspose apologizes for any inconvenience you may have experienced.

### add(number) {#add-number-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableIndex: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableIndex | number | Table index |

### add(string) {#add-string-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableId: string) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableId | string | Table ID |

### add(number, number) {#add-number-number-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableIndex: number, targetSheetIndex: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableIndex | number | Table index |
| targetSheetIndex | number | The target index of worksheet in Excel |

### add(string, number) {#add-string-number-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableId: string, targetSheetIndex: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableId | string | Table ID |
| targetSheetIndex | number | The target index of worksheet in Excel |

### add(number, number, number) {#add-number-number-number-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableIndex: number, targetSheetIndex: number, originalSheetIndex: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableIndex | number | Table index |
| targetSheetIndex | number | The target index of worksheet in Excel |
| originalSheetIndex | number | The original index of worksheet in the html |

### add(string, number, number) {#add-string-number-number-}

Add a HtmlTableLoadOption to the list.

```javascript
add(tableId: string, targetSheetIndex: number, originalSheetIndex: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| tableId | string | Table ID |
| targetSheetIndex | number | The target index of worksheet in Excel |
| originalSheetIndex | number | The original index of worksheet in the html |

### addTableLoadOption(HtmlTableLoadOption) {#addTableLoadOption-htmltableloadoption-}

Adds one HtmlTableLoadOption into this collection.

```javascript
addTableLoadOption(item: HtmlTableLoadOption) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [HtmlTableLoadOption](../htmltableloadoption/) | one HtmlTableLoadOption |

**Returns**

the index of the added item

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



