コード例 #1
0
        private SheetHeaderModel Create(string name, int columnIndex)
        {
            var model = new SheetHeaderModel
            {
                Name      = name,
                CellIndex = CellIndexModelFactory.Create(columnIndex, 1)
            };

            return(model);
        }
コード例 #2
0
        private SheetCellModel Create(SheetHeaderModel header, string content, int rowIndex)
        {
            var model = new SheetCellModel
            {
                Header    = header,
                Content   = content,
                CellIndex = CellIndexModelFactory.Create(header.CellIndex.Column, rowIndex)
            };

            return(model);
        }