NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Rectangle.Inflate (Rectangle, Int32, Int32)

Creates a rectangle that is inflated by the specified amount. If a negative size is specified the rectangle will be deflated.

[Visual Basic]
Overloads Public Shared Function Inflate( _
   ByVal rect As Rectangle, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Rectangle
[C#]
public static Rectangle Inflate(
   Rectangle rect,
   int x,
   int y
);
[C++]
public: static Rectangle Inflate(
   Rectangle rect,
   int x,
   int y
);
[JScript]
public static function Inflate(
   rect : Rectangle,
   x : int,
   y : int
) : Rectangle;

Parameters

rect
Rectangle to base the operation on. This rectangle will not be modified.
x
Amount to inflate this rectangle horizontally.
y
Amount to inflate this rectangle vertically.

Return Value

the resulting rectangle.

See Also

Rectangle Structure | Rectangle Members | System.Drawing Namespace | Rectangle.Inflate Overload List