SpreadJS 14
GC.Spread.Sheets.Tables Namespace / Table type / deleteColumns Method
The index of the first column to delete, based on table index.
The number of columns to delete.
In This Topic
    deleteColumns Method
    In This Topic
    Delete count number columns in the table at the specified table col index.
    Syntax
    var instance = new GC.Spread.Sheets.Tables.Table(name,
                                                    row,
                                                    col,
                                                    rowCount,
                                                    colCount,
                                                    style,
                                                    options,
                                                    options.showHeader,
                                                    options.showFooter,
                                                    options.useFooterDropDownList,
                                                    options.showResizeHandle);
    instance.deleteColumns(col, count);
    function deleteColumns( 
       col : number,
       count : number
    ) : void;

    Parameters

    col
    The index of the first column to delete, based on table index.
    count
    The number of columns to delete.
    Example
    var table = activeSheet.tables.add("table1", 1, 1, 10, 5, GC.Spread.Sheets.Tables.TableTheme.medium2);
    table.deleteColumns(3, 1);
    See Also

    Reference

    Table type