Пример #1
0
 public Rectangle(ICellPosition upperLeft, IObjectSize size)
 {
     UpperLeft  = upperLeft;
     Size       = size;
     LowerRight = upperLeft.Add(Size.Subtract(new ObjectSize(1, 1)));
 }
Пример #2
0
 public static ICellPosition ToGlobalCoordinates(this ICellPosition relativeCoordinates, ICellPosition originCoordinates)
 {
     return(relativeCoordinates.Add(originCoordinates.Subtract(new CellPosition(1, 1))));
 }