ARCed.UI.DockPanel.DockDragHandler.DockOutline.SetOutline C# (CSharp) Method

SetOutline() private method

private SetOutline ( DockPanel dockPanel, DockStyle dock, bool fullPanelEdge ) : void
dockPanel DockPanel
dock DockStyle
fullPanelEdge bool
return void
                private void SetOutline(DockPanel dockPanel, DockStyle dock, bool fullPanelEdge)
                {
                    Rectangle rect = fullPanelEdge ? dockPanel.DockArea : dockPanel.DocumentWindowBounds;
                    rect.Location = dockPanel.PointToScreen(rect.Location);
                    if (dock == DockStyle.Top)
                    {
                        int height = dockPanel.GetDockWindowSize(DockState.DockTop);
                        rect = new Rectangle(rect.X, rect.Y, rect.Width, height);
                    }
                    else if (dock == DockStyle.Bottom)
                    {
                        int height = dockPanel.GetDockWindowSize(DockState.DockBottom);
                        rect = new Rectangle(rect.X, rect.Bottom - height, rect.Width, height);
                    }
                    else if (dock == DockStyle.Left)
                    {
                        int width = dockPanel.GetDockWindowSize(DockState.DockLeft);
                        rect = new Rectangle(rect.X, rect.Y, width, rect.Height);
                    }
                    else if (dock == DockStyle.Right)
                    {
                        int width = dockPanel.GetDockWindowSize(DockState.DockRight);
                        rect = new Rectangle(rect.Right - width, rect.Y, width, rect.Height);
                    }
                    else if (dock == DockStyle.Fill)
                    {
                        rect = dockPanel.DocumentWindowBounds;
                        rect.Location = dockPanel.PointToScreen(rect.Location);
                    }

                    this.SetDragForm(rect);
                }

Same methods

DockPanel.DockDragHandler.DockOutline::SetOutline ( ) : void
DockPanel.DockDragHandler.DockOutline::SetOutline ( DockPane pane, DockStyle dock, int contentIndex ) : void
DockPanel.DockDragHandler.DockOutline::SetOutline ( Rectangle floatWindowBounds ) : void