Spread WPF 18
GrapeCity.Spreadsheet Namespace / ITableRows Interface / Add Method
An integer value indicates the relative position of the new row.
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.
The total number of new rows.


In This Topic
    Add Method (ITableRows)
    In This Topic
    Adds a new row to the table object.
    Syntax
    '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)
    ITableRow Add( 
       int position,
       bool alwaysInsert,
       int 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.
    Remarks
    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).
    See Also