Method: Rods#insertRow

Defined in:
lib/rods.rb

#insertRow(rowInd) ⇒ Object

Inserts and returns a row at the given index, thereby shifting existing rows

row=mySheet.insertRow(1) # inserts row above former row 1



3057
3058
3059
3060
3061
3062
3063
# File 'lib/rods.rb', line 3057

def insertRow(rowInd)
  die("insertRow: invalid rowInd #{rowInd}") unless (rowInd > 0)
  die("insertRow: rowInd #{rowInd} is not a Fixnum/Integer") unless (rowInd.class.to_s == "Fixnum")
  tell("insertRow: inserting new row")
  row=getRow(rowInd)
  return insertRowAbove(row)
end