ARCed.UI.DockPanel.OnLayout C# (CSharp) Method

OnLayout() protected method

protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs
return void
        protected override void OnLayout(LayoutEventArgs levent)
        {
            this.SuspendLayout(true);

            this.AutoHideStripControl.Bounds = ClientRectangle;

            this.CalculateDockPadding();

            this.DockWindows[DockState.DockLeft].Width = this.GetDockWindowSize(DockState.DockLeft);
            this.DockWindows[DockState.DockRight].Width = this.GetDockWindowSize(DockState.DockRight);
            this.DockWindows[DockState.DockTop].Height = this.GetDockWindowSize(DockState.DockTop);
            this.DockWindows[DockState.DockBottom].Height = this.GetDockWindowSize(DockState.DockBottom);

            this.AutoHideWindow.Bounds = this.GetAutoHideWindowBounds(this.AutoHideWindowRectangle);

            this.DockWindows[DockState.Document].BringToFront();
            this.AutoHideWindow.BringToFront();

            base.OnLayout(levent);

            if (this.DocumentStyle == DocumentStyle.SystemMdi && this.MdiClientExists)
            {
                this.SetMdiClientBounds(this.SystemMdiClientBounds);
                this.InvalidateWindowRegion();
            }
            else if (this.DocumentStyle == DocumentStyle.DockingMdi)
                this.InvalidateWindowRegion();

            this.ResumeLayout(true, true);
        }