ARCed.UI.DockPane.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.SetIsHidden(this.DisplayingContents.Count == 0);
            if (!this.IsHidden)
            {
                this.CaptionControl.Bounds = this.CaptionRectangle;
                this.TabStripControl.Bounds = this.TabStripRectangle;

                this.SetContentBounds();

                foreach (IDockContent content in this.Contents)
                {
                    if (this.DisplayingContents.Contains(content))
                        if (content.DockHandler.FlagClipWindow && content.DockHandler.Form.Visible)
                            content.DockHandler.FlagClipWindow = false;
                }
            }

            base.OnLayout(levent);
        }