class RubyXL::Border

www.datypic.com/sc/ooxml/e-ssml_border-2.html

Public Instance Methods

get_edge_color(direction) click to toggle source
# File lib/rubyXL/objects/border.rb, line 47
def get_edge_color(direction)
  edge = self.send(direction)
  edge && edge.get_rgb_color
end
get_edge_style(direction) click to toggle source
# File lib/rubyXL/objects/border.rb, line 33
def get_edge_style(direction)
  edge = self.send(direction)
  edge && edge.style
end
set_edge_color(direction, color) click to toggle source
# File lib/rubyXL/objects/border.rb, line 52
def set_edge_color(direction, color)
  edge = self.send(direction)
  if edge
    edge.set_rgb_color(color)
  else
    self.send("#{direction}=", RubyXL::BorderEdge.new)
    self.send(direction).set_rgb_color(color)
  end
end
set_edge_style(direction, style) click to toggle source
# File lib/rubyXL/objects/border.rb, line 38
def set_edge_style(direction, style)
  edge = self.send(direction)
  if edge
    edge.style = style
  else
    self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
  end
end