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

ViewDrawRibbonGroupRadioButtonText() public method

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

            _ribbon = ribbon;
            _ribbonRadioButton = ribbonRadioButton;
            _firstText = firstText;

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