次の方法で共有


Rectangle.Offset Method (Point)

Changes the position of the Rectangle.

Syntax

'Declaration
Public Sub Offset ( _
         amount As Point _
)
public void Offset (
         Point amount
)
public:
void Offset(
         Point amount
)

Parameters

  • amount
    Type: Point
    The values to adjust the position of the Rectangle by.

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