getIndexOf

abstract fun getIndexOf(command_id: Int): Int

Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu.