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

ViewDrawRibbonGroupText() public method

Initialize a new instance of the ViewDrawRibbonGroupText class.
public ViewDrawRibbonGroupText ( KryptonRibbon ribbon, KryptonRibbonGroup ribbonGroup, bool firstText ) : System
ribbon KryptonRibbon Source ribbon control.
ribbonGroup KryptonRibbonGroup Ribbon group to display title for.
firstText bool Should show the first group text.
return System
        public ViewDrawRibbonGroupText(KryptonRibbon ribbon,
                                       KryptonRibbonGroup ribbonGroup,
                                       bool firstText)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(ribbonGroup != null);

            _ribbon = ribbon;
            _ribbonGroup = ribbonGroup;
            _firstText = firstText;

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