次の方法で共有


Rectangle Constructor

Initializes a new instance of Rectangle.

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

Syntax

public Rectangle (
         int x,
         int y,
         int width,
         int height
)

Parameters

  • x
    The x-coordinate of the rectangle.
  • y
    The y-coordinate of the rectangle.
  • width
    Width of the rectangle.
  • height
    Height of the rectangle.

See Also

Reference

Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista