Method: Axlsx::WorksheetComments#index

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

#indexInteger

The index in the worksheet's relationships for the VML drawing that will render the comments

Returns:

  • (Integer)


45
46
47
# File 'lib/axlsx/workbook/worksheet/worksheet_comments.rb', line 45

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