Method: Writeexcel::Format#set_indent
- Defined in:
- lib/writeexcel/format.rb
#set_indent(indent = 1) ⇒ Object
This method can be used to indent text. The argument, which should be an integer, is taken as the level of indentation:
Default state: Text indentation is off
Default action: Indent text 1 level
Valid args: Positive integers
format = workbook.add_format
format.set_indent(2)
worksheet.write(0, 0, 'This text is indented', format)
Indentation is a horizontal alignment property. It will override any other horizontal properties but it can be used in conjunction with vertical properties.
1460 1461 1462 |
# File 'lib/writeexcel/format.rb', line 1460 def set_indent(indent = 1) @indent = indent end |