[]
Adds a new row to the table object.
ITableRow Add(int position = -1, bool alwaysInsert = true, int count = 1)
Function Add(Optional position As Integer = -1, Optional alwaysInsert As Boolean = True, Optional count As Integer = 1) As ITableRow
Type | Name | Description |
---|---|---|
int | position | An integer value indicates the relative position of the new row. |
bool | alwaysInsert | A boolean value indicates whether to always shift data in cells below the last row of the table when the new row is inserted, regardless if the row below the table is empty. If True , the cells below the table will be shifted down one row. If False , if the row below the table is empty, the table will expand to occupy that row without shifting cells below it; but if the row below the table contains data, those cells will be shifted down when the new row is inserted. |
int | count | The total number of new rows. |
If position
is not specified, a new bottom row is added.
If alwaysInsert
is not specified, the cells below the table will be shifted down one row (same as specifying true
).