Class: Axlsx::CellStyle
- Inherits:
-
Object
- Object
- Axlsx::CellStyle
- Includes:
- OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/stylesheet/cell_style.rb
Overview
Using Styles#add_style is the recommended way to manage cell styling.
CellStyle defines named styles that reference defined formatting records and can be used in your worksheet.
Instance Attribute Summary collapse
-
#builtinId ⇒ Integer
The buildinId to use when this named style is applied.
-
#customBuiltin ⇒ Boolean
Indicates that the build in style reference has been customized.
-
#hidden ⇒ Boolean
Determines if this named style should show in the list of styles when using excel.
-
#iLevel ⇒ Integer
Determines if this formatting is for an outline style, and what level of the outline it is to be applied to.
-
#name ⇒ String
The name of this cell style.
-
#xfId ⇒ Integer
The formatting record id this named style utilizes.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CellStyle
constructor
Creats a new CellStyle object.
-
#to_xml_string(str = '') ⇒ String
Serializes the object.
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes, #serialized_tag
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) ⇒ CellStyle
Creats a new CellStyle object
16 17 18 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 16 def initialize( = {}) end |
Instance Attribute Details
#builtinId ⇒ Integer
The buildinId to use when this named style is applied
34 35 36 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 34 def builtinId @builtinId end |
#customBuiltin ⇒ Boolean
Indicates that the build in style reference has been customized.
46 47 48 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 46 def customBuiltin @customBuiltin end |
#hidden ⇒ Boolean
Determines if this named style should show in the list of styles when using excel
42 43 44 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 42 def hidden @hidden end |
#iLevel ⇒ Integer
Determines if this formatting is for an outline style, and what level of the outline it is to be applied to.
38 39 40 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 38 def iLevel @iLevel end |
#name ⇒ String
The name of this cell style
24 25 26 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 24 def name @name end |
#xfId ⇒ Integer
The formatting record id this named style utilizes
29 30 31 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 29 def xfId @xfId end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serializes the object
64 65 66 |
# File 'lib/axlsx/stylesheet/cell_style.rb', line 64 def to_xml_string(str = '') serialized_tag('cellStyle', str) end |