protected override void OnLayout (LayoutEventArgs e) { base.OnLayout (e); if (control != null) control.Bounds = AlignInRectangle (this.Bounds, control.Size, this.control_align); }