Link Search Menu Expand Document

CSVDocument.InsertColumn Method

Explanation Insert column at specified index.
The data in each cell of the inserted column is initialised with an empty string.
Call format csvdoc.InsertColumn( column )
Return value None
Arguments integer column Column number starting with 0 at the insertion position.
Specify 0 to create the first column, 1 to create a new column in the second column. Specifying -1 or a number greater than the current column number will insert it as the last column.
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 DeleteColumn, InsertRow, DeleteRow methods