Enlarges the rectangle horizontally and vertically.
Syntax

[C#]

void Inflate(int width, int height);
static Rectangle Inflate(Rectangle rect, int x, int y);
void Inflate(Size sz);

[Visual Basic]

Sub Inflate(width As Integer, height As Integer)
Shared Function Inflate(rect As Rectangle, x As Integer, y As Integer) As Rectangle
Sub Inflate(sz As Size)
Params
Name Description
width The horizontal inflation in each direction.
height The vertical inflation in each direction.
rect The rectangle to operate on.
x The amount to add to the left and right.
y The amount to add to the top and bottom.
sz The inflation in each direction.
return The new resultant rectangle.
Notes

None.

Example

None.