class Axlsx::TableStyleElement

an element of style that belongs to a table style. @note tables and table styles are not supported in this version. This class exists in preparation for that support.

Attributes

dxfId[R]

The dxfId this style element points to @return [Integer]

size[R]

Number of rows or columns used in striping when the type is firstRowStripe, secondRowStripe, firstColumnStripe, or secondColumnStripe. @return [Integer]

type[R]

The type of style element. The following type are allowed

:wholeTable
:headerRow
:totalRow
:firstColumn
:lastColumn
:firstRowStripe
:secondRowStripe
:firstColumnStripe
:secondColumnStripe
:firstHeaderCell
:lastHeaderCell
:firstTotalCell
:lastTotalCell
:firstSubtotalColumn
:secondSubtotalColumn
:thirdSubtotalColumn
:firstSubtotalRow
:secondSubtotalRow
:thirdSubtotalRow
:blankRow
:firstColumnSubheading
:secondColumnSubheading
:thirdColumnSubheading
:firstRowSubheading
:secondRowSubheading
:thirdRowSubheading
:pageFieldLabels
:pageFieldValues

@return [Symbol]

Public Class Methods

new(options={}) click to toggle source

creates a new TableStyleElement object @option options [Symbol] type @option options [Integer] size @option options [Integer] dxfId

# File lib/axlsx/stylesheet/table_style_element.rb, line 14
def initialize(options={})
  parse_options options
end

Public Instance Methods

dxfId=(v) click to toggle source

@see dxfId

# File lib/axlsx/stylesheet/table_style_element.rb, line 67
def dxfId=(v) Axlsx::validate_unsigned_int v; @dxfId = v end
size=(v) click to toggle source

@see size

# File lib/axlsx/stylesheet/table_style_element.rb, line 64
def size=(v) Axlsx::validate_unsigned_int v; @size = v end
to_xml_string(str = '') click to toggle source

Serializes the object @param [String] str @return [String]

# File lib/axlsx/stylesheet/table_style_element.rb, line 72
def to_xml_string(str = '')
  str << '<tableStyleElement '
  serialized_attributes str
  str << '/>'
end
type=(v) click to toggle source

@see type

# File lib/axlsx/stylesheet/table_style_element.rb, line 61
def type=(v) Axlsx::validate_table_element_type v; @type = v end