Inflate

Rectangle.Inflate method (1 of 3)

Creates and returns an inflated copy of the specified Rectangle structure. The copy is inflated by the specified amount. The original Rectangle structure remains unmodified.

public static Rectangle Inflate(Rectangle rect, int x, int y)
Parameter Type Description
rect Rectangle The Rectangle with which to start. This rectangle is not modified.
x Int32 The amount to inflate this Rectangle horizontally.
y Int32 The amount to inflate this Rectangle vertically.

Return Value

The inflated Rectangle.

See Also


Rectangle.Inflate method (2 of 3)

Inflates this Rectangle by the specified amount.

public void Inflate(int width, int height)
Parameter Type Description
width Int32 The amount to inflate this Rectangle horizontally.
height Int32 The amount to inflate this Rectangle vertically.

See Also


Rectangle.Inflate method (3 of 3)

Inflates this Rectangle by the specified amount.

public void Inflate(Size size)
Parameter Type Description
size Size The amount to inflate this rectangle.

See Also