System.Drawing.Rectangle.Rectangle C# (CSharp) 메소드

Rectangle() 공개 메소드

Initializes a new instance of the Rectangle class with the specified location and size.

public Rectangle ( Point location, Size size ) : System.Diagnostics.Contracts
location Point
size Size
리턴 System.Diagnostics.Contracts
        public Rectangle(Point location, Size size)
        {
            _x = location.X;
            _y = location.Y;
            _width = size.Width;
            _height = size.Height;
        }

Same methods

Rectangle::Rectangle ( System location, System size )
Rectangle::Rectangle ( int x, int y, int width, int height )
Rectangle::Rectangle ( int x, int y, int width, int height ) : System.Diagnostics.Contracts