Method: Axlsx::Marker#coord

Defined in:
lib/axlsx/drawing/marker.rb

#coord(col, row = 0) ⇒ Object

shortcut to set the column, row position for this marker or an Array. String or Array.

Parameters:

  • col

    the column for the marker, a Cell object or a string reference like "B7"

  • row (defaults to: 0)

    the row of the marker. This is ignored if the col parameter is a Cell or



48
49
50
51
52
# File 'lib/axlsx/drawing/marker.rb', line 48

def coord(col, row = 0)
  coordinates = parse_coord_args(col, row)
  self.col = coordinates[0]
  self.row = coordinates[1]
end