System.Windows.Rect.Rect C# (CSharp) Méthode

Rect() public méthode

public Rect ( Size size ) : System
size Size
Résultat System
        public Rect(Size size)
        {
            if (size.IsEmpty)
            {
                this = s_empty;
            }
            else
            {
                this._x = this._y = 0.0;
                this._width = size.Width;
                this._height = size.Height;
            }
        }

Same methods

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