/// <summary>Creates and returns an inflated copy of the specified <see cref="T:System.Drawing.Rectangle"></see> structure. The copy is inflated by the specified amount. The original <see cref="T:System.Drawing.Rectangle"></see> structure remains unmodified.</summary> /// <returns>The inflated <see cref="T:System.Drawing.Rectangle"></see>.</returns> /// <param name="rect">The <see cref="T:System.Drawing.Rectangle"></see> with which to start. This rectangle is not modified. </param> /// <param name="y">The amount to inflate this <see cref="T:System.Drawing.Rectangle"></see> vertically. </param> /// <param name="x">The amount to inflate this <see cref="T:System.Drawing.Rectangle"></see> horizontally. </param> /// <filterpriority>1</filterpriority> public static Rect Inflate(Rect rect, int x, int y) { Rect rectangle1 = rect; rectangle1.Inflate(x, y); return(rectangle1); }