public bool IsInRange(string value) { var number = LetterSequence.GetNumber(value); if (Start <= number && number <= End) { return((number - Start) % Step == 0); } else { return(false); } }
public static string GetColName(int col) => LetterSequence.GetLetter(col);
public static int GetCol(string colName) => LetterSequence.GetNumber(colName);
public string GetValue(int index) => LetterSequence.GetLetter(index);
public LetterRange(string start, string end, int step) : this(LetterSequence.GetNumber(start), LetterSequence.GetNumber(end), 1) { }