ComponentFactory.Krypton.Docking.KryptonDockingControl.EnforceInnerMinimum C# (CSharp) Method

EnforceInnerMinimum() private method

private EnforceInnerMinimum ( ) : void
return void
        private void EnforceInnerMinimum()
        {
            // Find the available inner rectangle of our containing control
            Rectangle innerRect = DockingHelper.InnerRectangle(Control);

            // Do we need to adjust the left/right edge controls?
            if (innerRect.Width < InnerMinimum.Width)
                EnforceInnerMinimum(InnerMinimum.Width - innerRect.Width, Orientation.Horizontal);

            // Do we need to adjust the top/bottom edge controls?
            if (innerRect.Height < InnerMinimum.Height)
                EnforceInnerMinimum(InnerMinimum.Height - innerRect.Height, Orientation.Vertical);
        }

Same methods

KryptonDockingControl::EnforceInnerMinimum ( int remove, Orientation orientation ) : void