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

DockTo() public method

public DockTo ( INestedPanesContainer container ) : DockPane
container INestedPanesContainer
return DockPane
        public DockPane DockTo(INestedPanesContainer container)
        {
            if (container == null)
                throw new InvalidOperationException(Strings.DockPane_DockTo_NullContainer);

            DockAlignment alignment;
            if (container.DockState == DockState.DockLeft || container.DockState == DockState.DockRight)
                alignment = DockAlignment.Bottom;
            else
                alignment = DockAlignment.Right;

            return this.DockTo(container, container.NestedPanes.GetDefaultPreviousPane(this), alignment, 0.5);
        }

Same methods

DockPane::DockTo ( INestedPanesContainer container, DockPane previousPane, DockAlignment alignment, double proportion ) : DockPane
DockPane::DockTo ( DockPane pane, DockStyle dockStyle, int contentIndex ) : void
DockPane::DockTo ( DockPanel panel, DockStyle dockStyle ) : void