text: 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;}