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

ViewDrawRibbonGroupButtonText() public method

Initialize a new instance of the ViewDrawRibbonGroupButtonText class.
public ViewDrawRibbonGroupButtonText ( KryptonRibbon ribbon, KryptonRibbonGroupButton ribbonButton, bool firstText ) : System
ribbon KryptonRibbon Source ribbon control.
ribbonButton KryptonRibbonGroupButton Group button to display title for.
firstText bool Should show the first button text.
return System
        public ViewDrawRibbonGroupButtonText(KryptonRibbon ribbon,
                                             KryptonRibbonGroupButton ribbonButton,
                                             bool firstText)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonButton != null);

            _ribbon = ribbon;
            _ribbonButton = ribbonButton;
            _firstText = firstText;

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