public ViewDrawRibbonGroupLabelText ( KryptonRibbon ribbon, |
||
ribbon | KryptonRibbon | Source ribbon control. |
ribbonLabel | Group label to display title for. | |
firstText | bool | Should show the first button text. |
Результат | 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);
}