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

Rect() public method

public Rect ( double x, double y, double width, double height ) : System
x double
y double
width double
height double
return System
        public Rect(double x, double y, double width, double height)
        {
            if ((width < 0.0) || (height < 0.0))
            {
                throw new ArgumentException("Size_WidthAndHeightCannotBeNegative");
            }
            this._x = x;
            this._y = y;
            this._width = width;
            this._height = height;
        }

Same methods

Rect::Rect ( Point point1, Point point2 ) : System
Rect::Rect ( Point location, Size size ) : System
Rect::Rect ( Size size ) : System