Method: Format#set_type

Defined in:
lib/WriteExcel/format.rb

#set_type(type = nil) ⇒ Object

set_type()

Set the XF object type as 0 = cell XF or 0xFFF5 = style XF.



538
539
540
541
542
543
544
545
# File 'lib/WriteExcel/format.rb', line 538

def set_type(type = nil)

  if !type.nil? and type == 0
    @type = 0x0000
  else
    @type = 0xFFF5
  end
end