RectangleF::Inflate Method (Single, Single)
.NET Framework (current version)
Enlarges this RectangleF structure by the specified amount.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- x
-
Type:
System::Single
The amount to inflate this RectangleF structure horizontally.
- y
-
Type:
System::Single
The amount to inflate this RectangleF structure vertically.
This method enlarges this rectangle, not a copy of it. The rectangle is enlarged in both directions along an axis. For example, if a 50 by 50 rectangle is inflated by 50 in the x-axis, the resultant rectangle will be 150 units long (the original 50, the 50 in the minus direction, and the 50 in the plus direction) maintaining the rectangle's geometric center.
If either x or y is negative, the RectangleF is deflated in the corresponding direction.
.NET Framework
Available since 1.1
Available since 1.1
Show: