Method: RubyXL::WorksheetConvenienceMethods#change_column_width
- Defined in:
- lib/rubyXL/convenience_methods/worksheet.rb
permalink #change_column_width(column_index, width_in_chars = RubyXL::ColumnRange::DEFAULT_WIDTH) ⇒ Object
Get column width measured in number of digits, as per msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.column%28v=office.14%29.aspx
384 385 386 |
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 384 def change_column_width(column_index, width_in_chars = RubyXL::ColumnRange::DEFAULT_WIDTH) change_column_width_raw(column_index, RubyXL::ColumnRange::chars2raw(width_in_chars)) end |