
## insert_row {#int}

Insert a row into this section. The new row is inserted immediately 
before the current `index`th row in this section. If 
`index` is -1 or equal to the number of rows in this 
section, the new row is appended.


### Returns 


The newly created row.


```python
def insert_row(self, index):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| index | int | The row number where to insert a new row. This index <br/>starts from 0 and is relative only to the rows contained inside <br/>this section, not all the rows in the table. |
### Exceptions
| Exception | Description |
| :- | :- |
| [`DOMException`](/html/python-net/aspose.html.dom/domexception) | INDEX_SIZE_ERR: Raised if the specified index is greater than the <br/>number of rows of if the index is a negative number other than -1.<br/>@version DOM Level 2 |





### See Also
* module [`aspose.html`](../../)
* class [`DOMException`](/html/python-net/aspose.html.dom/domexception)
* class [`HTMLTableSectionElement`](/html/python-net/aspose.html/htmltablesectionelement)
