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

ViewDrawRibbonGroupClusterButtonText() public method

Initialize a new instance of the ViewDrawRibbonGroupButtonText class.
public ViewDrawRibbonGroupClusterButtonText ( KryptonRibbon ribbon, KryptonRibbonGroupClusterButton ribbonButton ) : System
ribbon KryptonRibbon Source ribbon control.
ribbonButton KryptonRibbonGroupClusterButton Group cluster button to display title for.
return System
        public ViewDrawRibbonGroupClusterButtonText(KryptonRibbon ribbon,
                                                    KryptonRibbonGroupClusterButton ribbonButton)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonButton != null);

            _ribbon = ribbon;
            _ribbonButton = ribbonButton;

            // Use a class to convert from ribbon group to content interface
            _contentProvider = new RibbonGroupNormalDisabledTextToContent(ribbon.StateCommon.RibbonGeneral,
                                                                  ribbon.StateNormal.RibbonGroupButtonText,
                                                                  ribbon.StateDisabled.RibbonGroupButtonText);
        }