Method: Writeexcel::Format#set_pattern

Defined in:
lib/writeexcel/format.rb

#set_pattern(pattern = 1) ⇒ Object

Default state: Pattern is off

Default action:     Solid fill is on
Valid args:         0 .. 18

Set the background pattern of a cell.

Examples of the available patterns are shown in the ‘Patterns’ worksheet created by formats.rb. However, it is unlikely that you will ever need anything other than Pattern 1 which is a solid fill of the background color.



1501
1502
1503
# File 'lib/writeexcel/format.rb', line 1501

def set_pattern(pattern = 1)
  @pattern = pattern
end