ComponentFactory.Krypton.Docking.KryptonAutoHiddenGroup.KryptonAutoHiddenGroup C# (CSharp) Method

KryptonAutoHiddenGroup() public method

Initialize a new instance of the KryptonAutoHiddenGroup class.
public KryptonAutoHiddenGroup ( DockingEdge edge ) : System
edge DockingEdge
return System
        public KryptonAutoHiddenGroup(DockingEdge edge)
        {
            // Define appropriate appearance/behavior for an auto hidden group
            AutoSize = true;
            AutoSizeMode = AutoSizeMode.GrowAndShrink;
            AllowTabFocus = false;
            AllowTabSelect = false;
            Bar.TabBorderStyle = TabBorderStyle.DockEqual;
            Bar.TabStyle = TabStyle.DockAutoHidden;
            Bar.BarFirstItemInset = 3;
            Bar.BarLastItemInset = 12;
            Bar.BarMinimumHeight = 0;
            Button.ButtonDisplayLogic = ButtonDisplayLogic.None;
            Button.CloseButtonDisplay = ButtonDisplay.Hide;
            NavigatorMode = NavigatorMode.BarTabOnly;

            // Edge dependant values
            switch (edge)
            {
                case DockingEdge.Left:
                    Bar.BarOrientation = VisualOrientation.Right;
                    Bar.ItemOrientation = ButtonOrientation.FixedRight;
                    Dock = DockStyle.Top;
                    break;
                case DockingEdge.Right:
                    Bar.BarOrientation = VisualOrientation.Left;
                    Bar.ItemOrientation = ButtonOrientation.FixedRight;
                    Dock = DockStyle.Top;
                    break;
                case DockingEdge.Top:
                    Bar.BarOrientation = VisualOrientation.Bottom;
                    Bar.ItemOrientation = ButtonOrientation.FixedTop;
                    Dock = DockStyle.Left;
                    break;
                case DockingEdge.Bottom:
                    Bar.BarOrientation = VisualOrientation.Top;
                    Bar.ItemOrientation = ButtonOrientation.FixedTop;
                    Dock = DockStyle.Left;
                    break;
            }
        }