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