Method: Writeexcel::Format#set_border_color
- Defined in:
- lib/writeexcel/format.rb
#set_border_color(color) ⇒ Object
Set cells border to the same color
Also applies to: set_bottom_color()
set_top_color()
set_left_color()
set_right_color()
Default state: Color is off
Default action: Undefined
Valid args: See set_color()
Set the colour of the cell borders. A cell border is comprised of a border on the bottom, top, left and right. These can be set to the same colour using set_border_color() or individually using the relevant method calls shown above. Examples of the border styles and colours are shown in the ‘Borders’ worksheet created by formats.rb.
1164 1165 1166 1167 1168 1169 |
# File 'lib/writeexcel/format.rb', line 1164 def set_border_color(color) set_bottom_color(color) set_top_color(color) set_left_color(color) set_right_color(color) end |