ComponentFactory.Krypton.Ribbon.ViewLayoutRibbonGroupsArea.ViewLayoutRibbonGroupsArea C# (CSharp) Method

ViewLayoutRibbonGroupsArea() public method

Initialize a new instance of the ViewLayoutRibbonGroupsArea class.
public ViewLayoutRibbonGroupsArea ( KryptonRibbon ribbon, PaletteRedirect redirect, NeedPaintHandler needPaintDelegate ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
redirect ComponentFactory.Krypton.Toolkit.PaletteRedirect Reference to redirector for palette settings.
needPaintDelegate NeedPaintHandler Delegate for notifying paint/layout changes.
return System
        public ViewLayoutRibbonGroupsArea(KryptonRibbon ribbon,
                                          PaletteRedirect redirect,
                                          NeedPaintHandler needPaintDelegate)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(redirect != null);
            Debug.Assert(needPaintDelegate != null);

            // Remember the incoming reference
            _ribbon = ribbon;

            // Create access to the redirector and use as our palette source
            _backInherit = new PaletteBackInheritRedirect(redirect, PaletteBackStyle.PanelClient);
            SetPalettes(_backInherit);

            // Create and add the only child we need, the groups area border element
            _viewGroups = new ViewDrawRibbonGroupsBorderSynch(ribbon, needPaintDelegate);
            Add(_viewGroups);
        }