Class: Writexlsx::Format::FillStyle

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/fill_style.rb

Instance Method Summary collapse

Constructor Details

#initialize(format) ⇒ FillStyle

Returns a new instance of FillStyle.



7
8
9
# File 'lib/write_xlsx/format/fill_style.rb', line 7

def initialize(format)
  @format = format
end

Instance Method Details

#bg_colorObject



15
16
17
# File 'lib/write_xlsx/format/fill_style.rb', line 15

def bg_color
  @format.state.fill.bg_color
end

#bg_color=(value) ⇒ Object



35
36
37
# File 'lib/write_xlsx/format/fill_style.rb', line 35

def bg_color=(value)
  @format.state.fill.bg_color = value
end

#countObject



27
28
29
# File 'lib/write_xlsx/format/fill_style.rb', line 27

def count
  @format.state.fill.count
end

#count=(value) ⇒ Object



47
48
49
# File 'lib/write_xlsx/format/fill_style.rb', line 47

def count=(value)
  @format.state.fill.count = value
end

#fg_colorObject



11
12
13
# File 'lib/write_xlsx/format/fill_style.rb', line 11

def fg_color
  @format.state.fill.fg_color
end

#fg_color=(value) ⇒ Object



31
32
33
# File 'lib/write_xlsx/format/fill_style.rb', line 31

def fg_color=(value)
  @format.state.fill.fg_color = value
end

#indexObject



23
24
25
# File 'lib/write_xlsx/format/fill_style.rb', line 23

def index
  @format.state.fill.index
end

#index=(value) ⇒ Object



43
44
45
# File 'lib/write_xlsx/format/fill_style.rb', line 43

def index=(value)
  @format.state.fill.index = value
end

#patternObject



19
20
21
# File 'lib/write_xlsx/format/fill_style.rb', line 19

def pattern
  @format.state.fill.pattern
end

#pattern=(value) ⇒ Object



39
40
41
# File 'lib/write_xlsx/format/fill_style.rb', line 39

def pattern=(value)
  @format.state.fill.pattern = value
end