Method: Writeexcel::Format#set_font_script
- Defined in:
- lib/writeexcel/format.rb
#set_font_script(arg = 1) ⇒ Object
Set the superscript/subscript property of the font. This format is currently not very useful.
Default state: Super/Subscript is off
Default action: Turn Superscript on
Valid args: 0 = Normal
1 = Superscript
2 = Subscript
779 780 781 782 783 784 785 786 787 788 789 790 |
# File 'lib/writeexcel/format.rb', line 779 def set_font_script(arg = 1) begin if arg == 0 then @font_script = 0 elsif arg == 1 then @font_script = 1 elsif arg == 2 then @font_script = 2 else raise ArgumentError, "\n\n set_font_script(#{arg.inspect})\n arg must be 0, 1, or none. or 2\n" " ( 0:OFF, 1 and none:Superscript, 2:Subscript )\n" end end end |