ComponentFactory.Krypton.Toolkit.RenderDragDockingData.RenderDragDockingData C# (CSharp) Method

RenderDragDockingData() public method

Initialize a new instance of the PaletteDragData class.
public RenderDragDockingData ( bool showLeft, bool showRight, bool showTop, bool showBottom, bool showMiddle ) : System
showLeft bool Should the left docking indicator be shown.
showRight bool Should the right docking indicator be shown.
showTop bool Should the top docking indicator be shown.
showBottom bool Should the bottom docking indicator be shown.
showMiddle bool Should the middle docking indicator be shown.
return System
        public RenderDragDockingData(bool showLeft, bool showRight, 
                                     bool showTop, bool showBottom, 
                                     bool showMiddle)
        {
            _flags = new BoolFlags31();

            // Set initial settings (ShowBack is auto calculated from other flags)
            ShowLeft = showLeft;
            ShowRight = showRight;
            ShowTop = showTop;
            ShowBottom = showBottom;
            ShowMiddle = showMiddle;

            // Default valies
            _windowSize = Size.Empty;
            _rects = new Rectangle[5];
            for (int i = 0; i < _rects.Length; i++)
                _rects[i] = Rectangle.Empty;
        }