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

GetGroupKeyTips() public method

Gets the array of group level key tips.
public GetGroupKeyTips ( KeyTipInfoList keyTipList, int lineHint ) : void
keyTipList KeyTipInfoList List to add new entries into.
lineHint int Provide hint to item about its location.
return void
        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]);

                // Determine the screen position of the key tip dependant on item location
                Point screenPt = _ribbon.CalculatedValues.KeyTipRectToPoint(viewRect, lineHint);

                keyTipList.Add(new KeyTipInfo(_ribbonButton.Enabled, _ribbonButton.KeyTip, screenPt,
                                              this[0].ClientRectangle, _viewMediumSmall.Controller));
            }
        }