Rectangle.Inflate

Inflate(Rectangle, int, int)

Creates a Rectangle that is inflated by the specified amount.

public static Rectangle Inflate(Rectangle rect, int x, int y)
ParameterTypeDescription
rectRectangleA rectangle to inflate.
xInt32The amount to inflate rectangle specified by rect horizontally.
yInt32The amount to inflate rectangle specified by rect vertically.

Return Value

Returns a Rectangle that is inflated by the specified amount.

See Also


Inflate(int, int)

Enlarges this Rectangle by the specified amount.

public void Inflate(int width, int height)
ParameterTypeDescription
widthInt32The amount to inflate this Rectangle horizontally.
heightInt32The amount to inflate this Rectangle vertically.

See Also


Inflate(Size)

Enlarges this Rectangle by the specified amount.

public void Inflate(Size size)
ParameterTypeDescription
sizeSizeThe size to inflate this Rectangle.

See Also