class Axlsx::IconSet

@see ConditionalFormattingRule#initialize
@see Worksheet#add_conditional_formatting
@note The recommended way to manage these rules is via Worksheet#add_conditional_formatting

def iconSet=(v); Axlsx::validate_icon_set(v); @iconSet = v end

Other tags:
    See: iconSet -
def iconSet=(v); Axlsx::validate_icon_set(v); @iconSet = v end

def initialize(options = {})

Options Hash: (**options)
  • showValue (Boolean) --
  • percent (Boolean) --
  • reverse (Boolean) --
  • iconSet (String) --
def initialize(options = {})
  @percent = @showValue = true
  @reverse = false
  @iconSet = "3TrafficLights1"
  initialize_value_objects
  parse_options options
  yield self if block_given?
end

def initialize_value_objects

I am keeping this private for now as I am not sure what impact changes to the required two cfvo objects will do.
Initalize the simple typed list of value objects
def initialize_value_objects
  @value_objects = SimpleTypedList.new Cfvo
  @value_objects.concat [Cfvo.new(:type => :percent, :val => 0), Cfvo.new(:type => :percent, :val => 33), Cfvo.new(:type => :percent, :val => 67)]
  @value_objects.lock
end

def percent=(v); Axlsx.validate_boolean(v); @percent = v end

Other tags:
    See: percent -
def percent=(v); Axlsx.validate_boolean(v); @percent = v end

def reverse=(v); Axlsx.validate_boolean(v); @reverse = v end

Other tags:
    See: reverse -
def reverse=(v); Axlsx.validate_boolean(v); @reverse = v end

def showValue=(v); Axlsx.validate_boolean(v); @showValue = v end

Other tags:
    See: showValue -
def showValue=(v); Axlsx.validate_boolean(v); @showValue = v end

def to_xml_string(str = "")

Returns:
  • (String) -

Parameters:
  • str (String) --
def to_xml_string(str = "")
  serialized_tag('iconSet', str) do
    @value_objects.each { |cfvo| cfvo.to_xml_string(str) }
  end
end