Method: Rods#deleteCellFromRow
- Defined in:
- lib/rods.rb
#deleteCellFromRow(row, colInd) ⇒ Object
Delets the cell at the given index in the given row
row=mySheet.getRow(8)
mySheet.deleteCell(row,9)
2838 2839 2840 2841 2842 2843 2844 |
# File 'lib/rods.rb', line 2838 def deleteCellFromRow(row,colInd) die("deleteCell: row #{row} is not a REXML::Element") unless (row.class.to_s == "REXML::Element") die("deleteCell: index #{colInd} is not a Fixnum/Integer") unless (colInd.class.to_s == "Fixnum") die("deleteCell: invalid index #{colInd}") unless (colInd > 0) cell=getCellFromRow(row,colInd+1) deleteCellBefore(cell) end |