Rectangle.Inflate Method (Microsoft.Xna.Framework)

Adjusts the edges of this Rectangle by specified horizontal and vertical amounts.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.398)
  • C#
  • VB
  • F#
public void Inflate(
	float horizontalAmount, 
	float verticalAmount
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

horizontalAmount
Type: System.Single
Value to adjust the left and right edges.
verticalAmount
Type: System.Single
Value to adjust the top and bottom edges.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web