Rectangle.Offset Method (Microsoft.Xna.Framework)

Changes the Location of this Rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public void Offset(
	Vector2 amount

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector2
The x and y components to add to this Rectangle.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop