class Xlsxrb::ConditionalFormatBuilder
Builder context for configuring conditional formatting rules in block form.
Public Class Methods
(?String? sqref, **untyped opts) → void
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2938 def initialize(sqref = nil, **opts) @options = opts.dup @options[:sqref] = sqref if sqref end
@param sqref [String, nil] Target cell or range reference. @param opts [Hash] Additional conditional formatting properties.
Public Instance Methods
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3129 def above_average=(val) @options[:above_average] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3124 def above_average? @options[:above_average] ? true : false end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3059 def bold=(val) @options[:bold] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3054 def bold? @options[:bold] ? true : false end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3179 def bottom=(val) @options[:bottom] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3174 def bottom? @options[:bottom] ? true : false end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3204 def color_scale @options[:color_scale] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3209 def color_scale=(val) @options[:color_scale] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2954 def columns @options[:columns] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2959 def columns=(val) @options[:columns] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3214 def data_bar @options[:data_bar] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3219 def data_bar=(val) @options[:data_bar] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3234 def dxf @options[:dxf] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3239 def dxf=(val) @options[:dxf] = val end
() → Integer?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3248 def dxf_id @options[:dxf_id] end
Gets the differential format identifier (dxfId).
@return [Integer, nil] @api public
(Integer val) → Integer
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3258 def dxf_id=(val) @options[:dxf_id] = val.to_i end
Sets the differential format identifier (dxfId).
@param val [Integer] @return [Integer] @api public
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3139 def equal_average=(val) @options[:equal_average] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3134 def equal_average? @options[:equal_average] ? true : false end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2974 def except_rows @options[:except_rows] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2979 def except_rows=(val) @options[:except_rows] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3024 def fill @options[:fill] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3029 def fill=(val) @options[:fill] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3034 def fill_color @options[:fill_color] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3039 def fill_color=(val) @options[:fill_color] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3014 def font @options[:font] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3019 def font=(val) @options[:font] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3044 def font_color @options[:font_color] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3049 def font_color=(val) @options[:font_color] = val end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3084 def font_name @options[:font_name] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3089 def font_name=(val) @options[:font_name] = val.to_s end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3094 def font_size @options[:font_size] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3099 def font_size=(val) @options[:font_size] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3004 def formula @options[:formula] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3009 def formula=(val) @options[:formula] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3224 def icon_set @options[:icon_set] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3229 def icon_set=(val) @options[:icon_set] = val end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3069 def italic=(val) @options[:italic] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3064 def italic? @options[:italic] ? true : false end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2994 def operator @options[:operator] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2999 def operator=(val) @options[:operator] = val end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3169 def percent=(val) @options[:percent] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3164 def percent? @options[:percent] ? true : false end
() → Integer?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3114 def priority @options[:priority] end
(Integer val) → Integer
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3119 def priority=(val) @options[:priority] = val.to_i end
() → Integer?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3154 def rank @options[:rank] end
(Integer val) → Integer
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3159 def rank=(val) @options[:rank] = val.to_i end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2964 def rows @options[:rows] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2969 def rows=(val) @options[:rows] = val end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2944 def sqref @options[:sqref] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2949 def sqref=(val) @options[:sqref] = val.to_s end
() → Integer?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3144 def std_dev @options[:std_dev] end
(Integer val) → Integer
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3149 def std_dev=(val) @options[:std_dev] = val.to_i end
(bool val) → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3109 def stop_if_true=(val) @options[:stop_if_true] = val ? true : false end
() → bool
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3104 def stop_if_true? @options[:stop_if_true] ? true : false end
() → String?
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3184 def text @options[:text] end
(String val) → String
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3189 def text=(val) @options[:text] = val.to_s end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3194 def time_period @options[:time_period] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3199 def time_period=(val) @options[:time_period] = val end
() → Hash[Symbol, untyped]
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3263 def to_h @options.dup end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2984 def type @options[:type] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 2989 def type=(val) @options[:type] = val end
() → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3074 def underline @options[:underline] end
(untyped val) → untyped
Source
# File lib/xlsxrb/worksheet_builder.rb, line 3079 def underline=(val) @options[:underline] = val end