public int getSheetIndex(String name) {int retval = -1;final int size = boundsheets.size();for (int k = 0; k < size; k++) {String sheet = getSheetName(k);if (sheet.equalsIgnoreCase(name)) {retval = k;break;}}return retval;}

public int GetSheetIndex(String name){int retval = -1;for (int k = 0; k < boundsheets.Count; k++){String sheet = GetSheetName(k);if (sheet.Equals(name,StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}
