Creates and returns an enlarged copy of the specified Rect structure. The copy is enlarged by the specified amount. The original Rect structure remains unmodified.
Syntax
'Declaration
Public Overloads Shared Function Inflate( _
ByVal As Rect, _
ByVal As Single, _
ByVal As Single _
) As Rect
public static Rect Inflate(
Rect ,
float ,
float
)
Parameters
- rect
- The Rect with which to start. This rectangle is not modified.
- x
- The amount to inflate the rectangle horizontally.
- y
- The amount to inflate the rectangle vertically.
Return Value
Rect.
See Also