Method: RubyXL::WorksheetConvenienceMethods#change_column_width_raw

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

#change_column_width_raw(column_index, width) ⇒ Object

Set raw column width value

[View source]

374
375
376
377
378
379
380
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 374

def change_column_width_raw(column_index, width)
  validate_workbook
  ensure_cell_exists(0, column_index)
  range = cols.get_range(column_index)
  range.width = width
  range.custom_width = true
end