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