/// <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; }
/// <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; }