Method: Axlsx::TwoCellAnchor#initialize
- Defined in:
- lib/axlsx/drawing/two_cell_anchor.rb
#initialize(drawing, options = {}) ⇒ TwoCellAnchor
Note:
the chart_type parameter will be replaced with object in v. 2.0.0
Creates a new TwoCellAnchor object and sets up a reference to the from and to markers in the graphic_frame’s chart. That means that you can do stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
39 40 41 42 43 |
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 39 def initialize(drawing, ={}) @drawing = drawing drawing.anchors << self @from, @to = Marker.new, Marker.new(:col => 5, :row=>10) end |