/// <summary> /// Creates and returns an inflated copy of the specified <see cref="RRect" /> structure. The copy is inflated by the specified amount. The original rectangle remains unmodified. /// </summary> /// <returns> /// The inflated <see cref="RRect" />. /// </returns> /// <param name="rect"> /// The <see cref="RRect" /> to be copied. This rectangle is not modified. /// </param> /// <param name="x">The amount to inflate the copy of the rectangle horizontally. </param> /// <param name="y">The amount to inflate the copy of the rectangle vertically. </param> public static RRect Inflate(RRect rect, double x, double y) { RRect rectangleF = rect; rectangleF.Inflate(x, y); return(rectangleF); }