次の方法で共有


Rectangle.Offset Method (Int32, Int32)

Changes the position of the Rectangle.

Syntax

'Declaration
Public Sub Offset ( _
         offsetX As Integer, _
         offsetY As Integer _
)
public void Offset (
         int offsetX,
         int offsetY
)
public:
void Offset(
         int offsetX,
         int offsetY
)

Parameters

  • offsetX
    Type: Int32
    Change in the x-position.
  • offsetY
    Type: Int32
    Change in the y-position.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone