Link Search Menu Expand Document

CSVDocument.InsertRow Method

Explanation Inserts a row at the specified position.
The data in each cell of the inserted row is initialised with an empty string.
Call format csvdoc.InsertRow( row )
Return value None
Arguments integer row Line number starting with 0 at the insertion position.
Specify 0 to create the first line, 1 to create a new line at the second line. Specifying -1 or a number greater than the current line number inserts it as the last line.
Exception None
Example of use
    var csvdoc = new CSVDocument;
    csvdoc.InsertColumn(-1);
    csvdoc.InsertColumn(-1);
    csvdoc.InsertRow(-1);
    csvdoc.InsertRow(-1);
    csvdoc.SetCell(1, 1, "sample");
    
Related item DeleteRow, InsertColumn, DeleteColumn methods