Method: Axlsx::WorksheetDrawing#index

Defined in:
lib/axlsx/workbook/worksheet/worksheet_drawing.rb

#indexInteger

returns the index of the worksheet releationship that defines this drawing.

Returns:

  • (Integer)


53
54
55
# File 'lib/axlsx/workbook/worksheet/worksheet_drawing.rb', line 53

def index
   worksheet.relationships.index{ |r| r.Type == DRAWING_R } +1 
end