RectangleF.Inflate Method (Single, Single)
Inflates this RectangleF structure by the specified amount.
[Visual Basic] Overloads Public Sub Inflate( _ ByVal x As Single, _ ByVal y As Single _ ) [C#] public void Inflate( float x, float y ); [C++] public: void Inflate( float x, float y ); [JScript] public function Inflate( x : float, y : float );
- The amount to inflate this RectangleF structure horizontally.
- The amount to inflate this RectangleF structure vertically.
This method does not return a value.
This method inflates this rectangle, not a copy of it. The inflation along an axis is in two directions (minus direction and plus direction). 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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family