class Axlsx::Dxf

@see Styles#add_style
The Dxf class defines an incremental formatting record for use in Styles. The recommended way to manage styles for your workbook is with Styles#add_style

def alignment=(v) DataTypeValidator.validate "Dxf.alignment", CellAlignment, v; @alignment = v end

Other tags:
    See: Dxf#alignment -
def alignment=(v) DataTypeValidator.validate "Dxf.alignment", CellAlignment, v; @alignment = v end

def border=(v) DataTypeValidator.validate "Dxf.border", Border, v; @border = v end

Other tags:
    See: border -
def border=(v) DataTypeValidator.validate "Dxf.border", Border, v; @border = v end

def fill=(v) DataTypeValidator.validate "Dxf.fill", Fill, v; @fill = v end

Other tags:
    See: fill -
def fill=(v) DataTypeValidator.validate "Dxf.fill", Fill, v; @fill = v end

def font=(v) DataTypeValidator.validate "Dxf.font", Font, v; @font = v end

Other tags:
    See: font -
def font=(v) DataTypeValidator.validate "Dxf.font", Font, v; @font = v end

def initialize(options = {})

Options Hash: (**options)
  • protection (CellProtection) --
  • alignment (CellAlignment) --
  • font (Font) --
  • fill (Fill) --
  • numFmt (NumFmt) --
  • border (Border) --
def initialize(options = {})
  parse_options options
end

def numFmt=(v) DataTypeValidator.validate "Dxf.numFmt", NumFmt, v; @numFmt = v end

Other tags:
    See: numFmt -
def numFmt=(v) DataTypeValidator.validate "Dxf.numFmt", NumFmt, v; @numFmt = v end

def protection=(v) DataTypeValidator.validate "Dxf.protection", CellProtection, v; @protection = v end

Other tags:
    See: protection -
def protection=(v) DataTypeValidator.validate "Dxf.protection", CellProtection, v; @protection = v end

def to_xml_string(str = '')

Returns:
  • (String) -

Parameters:
  • str (String) --
def to_xml_string(str = '')
  str << '<dxf>'
  # Dxf elements have no attributes. All of the instance variables
  # are child elements.
  CHILD_ELEMENTS.each do |element|
    self.send(element).to_xml_string(str) if self.send(element)
  end
  str << '</dxf>'
end