Method: RubyXL::WorksheetConvenienceMethods#change_row_border

Defined in:
lib/rubyXL/convenience_methods/worksheet.rb

#change_row_border(row, direction, weight) ⇒ Object

[View source]

457
458
459
460
461
462
463
464
465
466
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 457

def change_row_border(row, direction, weight)
  validate_workbook
  ensure_cell_exists(row)

  sheet_data.rows[row].style_index = @workbook.modify_border(get_row_style(row), direction, weight)

  sheet_data[row].cells.each { |c|
    c.change_border(direction, weight) unless c.nil?
  }
end