class Axlsx::CellStyle
CellStyle
defines named styles that reference defined formatting records and can be used in your worksheet. @note Using Styles#add_style
is the recommended way to manage cell styling. @see Styles#add_style
Attributes
The buildinId to use when this named style is applied @return [Integer] @see Axlsx::NumFmt
Indicates that the build in style reference has been customized. @return [Boolean]
Determines if this formatting is for an outline style, and what level of the outline it is to be applied to. @return [Integer]
The name of this cell style @return [String]
The formatting record id this named style utilizes @return [Integer] @see Axlsx::Xf
Public Class Methods
Creats a new CellStyle
object @option options [String] name @option options [Integer] xfId @option options [Integer] buildinId @option options [Integer] iLevel @option options [Boolean] hidden @option options [Boolean] customBuiltIn
# File lib/axlsx/stylesheet/cell_style.rb, line 18 def initialize(options={}) parse_options options end
Public Instance Methods
@see builtinId
# File lib/axlsx/stylesheet/cell_style.rb, line 55 def builtinId=(v) Axlsx::validate_unsigned_int v; @builtinId = v end
@see customBuiltin
# File lib/axlsx/stylesheet/cell_style.rb, line 61 def customBuiltin=(v) Axlsx::validate_boolean v; @customBuiltin = v end
@see iLivel
# File lib/axlsx/stylesheet/cell_style.rb, line 57 def iLevel=(v) Axlsx::validate_unsigned_int v; @iLevel = v end
@see name
# File lib/axlsx/stylesheet/cell_style.rb, line 51 def name=(v) Axlsx::validate_string v; @name = v end
Serializes the object @param [String] str @return [String]
# File lib/axlsx/stylesheet/cell_style.rb, line 66 def to_xml_string(str = '') str << '<cellStyle ' serialized_attributes str str << '/>' end
@see xfId
# File lib/axlsx/stylesheet/cell_style.rb, line 53 def xfId=(v) Axlsx::validate_unsigned_int v; @xfId = v end