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

ViewDrawRibbonGroupLabelText() public method

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

            _ribbon = ribbon;
            _ribbonLabel = ribbonLabel;
            _firstText = firstText;

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