ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupGallery.GetGroupKeyTips C# (CSharp) Method

GetGroupKeyTips() public method

Gets the array of group level key tips.
public GetGroupKeyTips ( KeyTipInfoList keyTipList ) : void
keyTipList KeyTipInfoList List to add new entries into.
return void
        public void GetGroupKeyTips(KeyTipInfoList keyTipList)
        {
            if (_ribbonGallery.Visible)
            {
                if (_viewLarge.Visible)
                {
                    // Get the screen location of the button
                    Rectangle viewRect = _ribbon.KeyTipToScreen(_viewLarge);
                    keyTipList.Add(new KeyTipInfo(_ribbonGallery.Enabled,
                                                  _ribbonGallery.KeyTip,
                                                  new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom),
                                                  ClientRectangle,
                                                  _viewLarge.Controller));
                }
                else if (LastGallery.CanFocus)
                {
                    // Get the screen location of the button
                    Rectangle viewRect = _ribbon.KeyTipToScreen(this);
                    keyTipList.Add(new KeyTipInfo(_ribbonGallery.Enabled,
                                                  _ribbonGallery.KeyTip,
                                                  new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom),
                                                  ClientRectangle,
                                                  _controller));
                }
            }
        }