Method: Writeexcel::Format#set_shrink
- Defined in:
- lib/writeexcel/format.rb
#set_shrink(arg = 1) ⇒ Object
This method can be used to shrink text so that it fits in a cell.
Default state: Text shrinking is off
Default action: Turn "shrink to fit" on
Valid args: 1
format = workbook.add_format
format.set_shrink
worksheet.write(0, 0, 'Honey, I shrunk the text!', format)
1475 1476 1477 |
# File 'lib/writeexcel/format.rb', line 1475 def set_shrink(arg = 1) @shrink = 1 end |