public static string ToPosition(this CellIndexModel model)
        {
            var letter = model.Column.ToLetter();

            var res = $"{letter}{model.Row}:{letter}";

            return(res);
        }
Exemple #2
0
        public static CellIndexModel Create(int columnIndex, int rowIndex)
        {
            var model = new CellIndexModel
            {
                Column = columnIndex,
                Row    = rowIndex
            };

            return(model);
        }