public void GetGroupKeyTips(KeyTipInfoList keyTipList, int lineHint)
{
// Only provide a key tip if we are visible
if (Visible)
{
// Get the screen location of the button
Rectangle viewRect = _ribbon.KeyTipToScreen(this[0]);
Point screenPt = Point.Empty;
GroupButtonController controller = null;
// Determine the screen position of the key tip dependant on item location/size
switch (_currentSize)
{
case GroupItemSize.Large:
screenPt = new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom);
controller = _viewLarge.Controller;
break;
case GroupItemSize.Medium:
case GroupItemSize.Small:
screenPt = _ribbon.CalculatedValues.KeyTipRectToPoint(viewRect, lineHint);
controller = _viewMediumSmall.Controller;
break;
}
keyTipList.Add(new KeyTipInfo(_ribbonColorButton.Enabled, _ribbonColorButton.KeyTip,
screenPt, this[0].ClientRectangle, controller));
}
}