ARCed.UI.DockPane.SetContentBounds C# (CSharp) Method

SetContentBounds() private method

private SetContentBounds ( ) : void
return void
        internal void SetContentBounds()
        {
            Rectangle rectContent = this.ContentRectangle;
            if (this.DockState == DockState.Document && this.DockPanel.DocumentStyle == DocumentStyle.DockingMdi)
                rectContent = this.DockPanel.RectangleToMdiClient(RectangleToScreen(rectContent));

            var rectInactive = new Rectangle(-rectContent.Width, rectContent.Y, rectContent.Width, rectContent.Height);
            foreach (IDockContent content in this.Contents)
                if (content.DockHandler.Pane == this)
                {
                    if (content == this.ActiveContent)
                        content.DockHandler.Form.Bounds = rectContent;
                    else
                        content.DockHandler.Form.Bounds = rectInactive;
                }
        }