Example #1
0
 public GridRange(Range rows, Range columns)
 {
     Rows = rows;
     Columns = columns;
 }
Example #2
0
 public bool Intersect(Range other)
 {
     return (this._end > other._start) && (this._start < other._end);
 }
Example #3
0
 public double GetWidth(Range range)
 {
     return Size(range, _xPositions);
 }
Example #4
0
 private double Size(Range range, double[] positions)
 {
     return positions[range.Start + range.Count] - positions[range.Start];
 }
Example #5
0
 public double GetHeight(Range range)
 {
     return Size(range, _yPositions);
 }