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

ViewLayoutRibbonGroupButton() public method

Initialize a new instance of the ViewLayoutRibbonGroupButton class.
public ViewLayoutRibbonGroupButton ( KryptonRibbon ribbon, KryptonRibbonGroup ribbonGroup, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Owning control instance.
ribbonGroup KryptonRibbonGroup Reference to ribbon group this represents.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public ViewLayoutRibbonGroupButton(KryptonRibbon ribbon,
                                           KryptonRibbonGroup ribbonGroup,
                                           NeedPaintHandler needPaint)
        {
            _groupButton = new ViewDrawRibbonGroupDialogButton(ribbon, ribbonGroup, needPaint);
            _centerButton = new ViewLayoutRibbonCenter();

            // Fill remainder with the actual button, but centered within space
            _centerButton.Add(_groupButton);
            Add(_centerButton, ViewDockStyle.Fill);
        }