Пример #1
0
        //public SizeF RequestedArea
        //{
        //    get
        //    {
        //        SizeF size = SizeF.Empty;
        //        //foreach (var c in Controls)
        //        //{
        //        //    size.Width = Math.Max(c.Area.X + c.RequestedArea.Width - Area.X, size.Width);
        //        //    size.Height = Math.Max(c.Area.Y + c.RequestedArea.Height - Area.Y, size.Height);
        //        //}
        //        return size;
        //    }
        //}

        public bool Contains(PointF point)
        {
            return(Controls.Any(c => c.Contains(point)));
        }