RectangleF::Inflate Method (RectangleF, Single, Single)
Creates and returns an enlarged copy of the specified RectangleF structure. The copy is enlarged by the specified amount and the original rectangle remains unmodified.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- rect
-
Type:
System.Drawing::RectangleF
The RectangleF to be copied. This rectangle is not modified.
- x
-
Type:
System::Single
The amount to enlarge the copy of the rectangle horizontally.
- y
-
Type:
System::Single
The amount to enlarge the copy of the rectangle vertically.
This method makes a copy of rect, enlarges the copy, and then returns the enlarged copy. 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.
Available since 1.1