Exemple #1
0
        public bool IsInRange(string value)
        {
            var number = LetterSequence.GetNumber(value);

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