예제 #1
0
        public ExcelSheetStructure SheetStructure(int index)
        {
            ExcelSheetStructure aSheetStructure = null;;

            if (_SheetStructures != null && _SheetStructures.Count() > index)
            {
                aSheetStructure = _SheetStructures[index];
            }
            return(aSheetStructure);
        }
예제 #2
0
        public ExcelSheetStructure SheetStructure(string sheetName)
        {
            ExcelSheetStructure aSheetStructure = null;

            if (_SheetStructures != null && _SheetStructures.Any())
            {
                if (_SheetStructures.Any(s => s.ExcelSheetName == sheetName))
                {
                    aSheetStructure = _SheetStructures.Single(s => s.ExcelSheetName == sheetName);
                }
            }
            return(aSheetStructure);
        }