public static Inflate ( |
||
rect | The |
|
width | float | The |
height | float | The |
Результат |
/// <summary> /// Increases the <see cref="Size"/> of the <see cref="Rectangle"/> by the specified values. /// </summary> /// <param name="rect">The <see cref="RectangleF"/> to modify.</param> /// <param name="width">The <see cref="SizeF.Width"/> to increase the <see cref="RectangleF"/> by.</param> /// <param name="height">The <see cref="SizeF.Height"/> to increase the <see cref="RectangleF"/> by.</param> /// <returns>A new <see cref="RectangleF"/> with the increased <see cref="Size"/>.</returns> public static RectangleF Inflate(RectangleF rect, float width, float height) => rect.Inflate(width, height);
/// <summary> /// Increases the <see cref="Size"/> of the <see cref="Rectangle"/> by the specified values. /// </summary> /// <param name="rect">The <see cref="RectangleF"/> to modify.</param> /// <param name="width">The <see cref="SizeF.Width"/> to increase the <see cref="RectangleF"/> by.</param> /// <param name="height">The <see cref="SizeF.Height"/> to increase the <see cref="RectangleF"/> by.</param> /// <returns>A new <see cref="RectangleF"/> with the increased <see cref="Size"/>.</returns> public static RectangleF Inflate(RectangleF rect, float width, float height) => rect.Inflate(width, height);