Rectangle.Offset Method (Int32, Int32)

Changes the position of the Rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public void Offset (
         int offsetX,
         int offsetY
)

Parameters

  • offsetX
    Change in the x-position.
  • offsetY
    Change in the y-position.

See Also

Reference

Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista