ARCed.UI.DockPanel.AutoHideWindowControl.LayoutAnimateWindow C# (CSharp) Method

LayoutAnimateWindow() private method

private LayoutAnimateWindow ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void
            private void LayoutAnimateWindow(Rectangle rect)
            {
                Bounds = this.DockPanel.GetAutoHideWindowBounds(rect);

                Rectangle rectClient = ClientRectangle;

                if (this.DockState == DockState.DockLeftAutoHide)
                    this.ActivePane.Location = new Point(rectClient.Right - 2 - Measures.SplitterSize - this.ActivePane.Width, this.ActivePane.Location.Y);
                else if (this.DockState == DockState.DockTopAutoHide)
                    this.ActivePane.Location = new Point(this.ActivePane.Location.X, rectClient.Bottom - 2 - Measures.SplitterSize - this.ActivePane.Height);
            }