Enlarges the rectangle horizontally and vertically leaving the center of the rectangle fixed.
Syntax

[C#]

void Inflate(double width, double height);
static RectangleF Inflate(RectangleF rect, double x, double y);
void Inflate(SizeF sz);

[Visual Basic]

Sub Inflate(width As Double, height As Double)
Shared Function Inflate(rect As RectangleF, x As Double, y As Double) As RectangleF
Sub Inflate(sz As SizeF)
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
return The new resultant rectangle.
Notes

None.

Example

None.