Пример #1
0
 public static Size Add(Size l, Size r)
 {
   return new Size(l._w + r._w, l._h + r._h);
 }
Пример #2
0
 public Rect(double x, double y, double w, double h)
 {
   _location = new Point(x, y);
   _size = new Size(w, h);
 }
Пример #3
0
 // not implemented before either, but probably should?
 public Size Measure(Size availableSize)
 {
   return Size.Empty;
 }
Пример #4
0
 public Rect(Point location, Size size) : this(location.X, location.Y, size.Width, size.Height) {}