LayoutFarm.RenderElement.ContainRect C# (CSharp) Метод

ContainRect() публичный Метод

public ContainRect ( Rectangle r ) : bool
r Rectangle
Результат bool
        public bool ContainRect(Rectangle r)
        {
            return r.Left >= b_left &&
                    r.Top >= b_top &&
                    r.Right <= b_left + b_width &&
                    r.Bottom <= b_top + b_height;
        }
        public bool ContainRect(int x, int y, int width, int height)

Same methods

RenderElement::ContainRect ( int x, int y, int width, int height ) : bool