Link Search Menu Expand Document

SSpread.DeleteRows Method

Explanation Deletes the specified row or range.

Deleting a row does not reduce the number of rows set in the MaxRows property, it automatically adds a blank row at the end of the spreadsheet.
Call format DeleteRows(row, numrows)
Return value None
Arguments row First line number of the line range to be deleted
numrows Number of lines to delete
Exception EXT-1 Invalid DeleteRows argument
EXT-28 An error occurred in the DeleteRows method
Example of use
    Function OnRClicked(e) {
        if (e.Col == 0 && e.Row > 0) {
            var ret = PopupMenu("行を挿入", "行を削除");
            switch (ret) {
            case 1:
                InsertRows(e.Row, 1);
                break;
            case 2:
                DeleteRows(e.Row, 1);
                break;
            }
        }
    }
    
Related item MaxRows property
DeleteCols, InsertRows methods