System.Windows.Rect.Rect C# (CSharp) Method

Rect() public method

public Rect ( Point location, Size size ) : System
location Point
size Size
return System
        public Rect(Point location, Size size)
        {
            if (size.IsEmpty)
            {
                this = s_empty;
            }
            else
            {
                this._x = location._x;
                this._y = location._y;
                this._width = size._width;
                this._height = size._height;
            }
        }

Same methods

Rect::Rect ( Point point1, Point point2 ) : System
Rect::Rect ( Size size ) : System
Rect::Rect ( double x, double y, double width, double height ) : System