示例#1
0
        //public System.Drawing.RectangleF Area
        //{
        //    get
        //    {
        //        if (!Controls.Any())
        //            return RectangleF.Empty;

        //        return Controls.Skip(1).Aggregate(Controls.First().Area, (r, c) => RectangleF.Union(r, c.Area), a => a);
        //    }
        //}

        public void Paint(Graphics g)
        {
            Controls.ForAll(c => c.Paint(g));
        }