Class: Writexlsx::Format::FillStyle
- Inherits:
-
Object
- Object
- Writexlsx::Format::FillStyle
- Defined in:
- lib/write_xlsx/format/fill_style.rb
Instance Method Summary collapse
- #bg_color ⇒ Object
- #bg_color=(value) ⇒ Object
- #count ⇒ Object
- #count=(value) ⇒ Object
- #fg_color ⇒ Object
- #fg_color=(value) ⇒ Object
- #index ⇒ Object
- #index=(value) ⇒ Object
-
#initialize(format) ⇒ FillStyle
constructor
A new instance of FillStyle.
- #pattern ⇒ Object
- #pattern=(value) ⇒ Object
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_color ⇒ Object
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 |
#count ⇒ Object
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_color ⇒ Object
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 |
#index ⇒ Object
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 |
#pattern ⇒ Object
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 |