/// <summary> /// Initialize a new instance of the ViewDrawRibbonGroupLabelText class. /// </summary> /// <param name="ribbon">Source ribbon control.</param> /// <param name="ribbonLabel">Group label to display title for.</param> /// <param name="firstText">Should show the first button text.</param> 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); }