Beispiel #1
0
        public bool Contains(IRowCol RowCol)
        {
            bool contains = false;

            if ((RowCol.CompareTo(this.From) >= 0) &&
                (RowCol.CompareTo(this.To) <= 0))
            {
                contains = true;
            }
            return(contains);
        }
Beispiel #2
0
 public RowColRange(IRowCol From, IRowCol To)
 {
     // make sure from preceeds to.
     if (To.CompareTo(From) < 0)
     {
         this.From = To;
         this.To   = From;
     }
     else
     {
         this.From = From;
         this.To   = To;
     }
 }