private string DrawColumnNames(int columns) { var stringBuilder = new StringBuilder(); stringBuilder.Append("__ "); for (int i = 0; i < columns; i++) { stringBuilder.Append(ColumnUtility.GetColumnLetter(i)); AppendEmptySpaceAtTheEnd(stringBuilder); } return(stringBuilder.ToString()); }
private bool ValidateColumn(string input) { var column = input.First(); try { ColumnUtility.GetColumnNumber(column.ToString().ToUpper()); } catch (ArgumentOutOfRangeException) { return(false); } return(true); }
public FieldCoordinates(string input) { Column = ColumnUtility.GetColumnNumber(input.First().ToString().ToUpper()); var row = (int.Parse(input[1..]) - 1);