Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a new rectangle with an origin location.
 /// </summary>
 /// <param name="size">The size of the rectangle.</param>
 public RectangleF(SizeF size)
 {
     Location = PointF.Origin;
     Size     = size;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a new rectangle.
 /// </summary>
 /// <param name="location">The location of the upper-left corner of the rectangle.</param>
 /// <param name="size">The size of the rectangle.</param>
 public RectangleF(PointF location, SizeF size)
 {
     Location = location;
     Size     = size;
 }