Ejemplo n.º 1
0
        public ExcelColumnStructure ColumnStructure(int index)
        {
            ExcelColumnStructure aColumnRule = new ExcelColumnStructure();

            if (_ColumnStructures != null && _ColumnStructures.Count() > index)
            {
                aColumnRule = _ColumnStructures[index];
            }
            return(aColumnRule);
        }
Ejemplo n.º 2
0
        public ExcelColumnStructure ColumnStructure(string columnName)
        {
            ExcelColumnStructure aColumnStructure = new ExcelColumnStructure();

            if (_ColumnStructures != null && _ColumnStructures.Any())
            {
                if (_ColumnStructures.Any(s => s.ExcelColumn == columnName))
                {
                    aColumnStructure = _ColumnStructures.Single(s => s.ExcelColumn == columnName);
                }
            }
            return(aColumnStructure);
        }