'Declaration Function Add( _ Optional ByVal position As Integer, _ Optional ByVal alwaysInsert As Boolean, _ Optional ByVal count As Integer _ ) As ITableRow
'Usage Dim instance As ITableRows Dim position As Integer Dim alwaysInsert As Boolean Dim count As Integer Dim value As ITableRow value = instance.Add(position, alwaysInsert, count)
Parameters
- position
- An integer value indicates the relative position of the new row.
- 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.
- count
- The total number of new rows.
Return Value
An ITableRow object that represents the new row.