ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroup.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 (Collapsed)
            {
                // Get the screen location of the collapsed view
                Rectangle viewRect = _ribbon.KeyTipToScreen(_layoutCollapsedMain);

                // The keytip should be centered at the bottom of the view
                Point screenPt = new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom + 4);

                keyTipList.Add(new KeyTipInfo(true, _ribbonGroup.KeyTipGroup, screenPt,
                                              _layoutCollapsedMain.ClientRectangle, _collapsedController));
            }
            else
            {
                // Do we add a key tip for the dialog box launcher button
                if (_ribbonGroup.DialogBoxLauncher)
                {
                    // Get the screen location of the dialog button view
                    Rectangle viewRect = _ribbon.KeyTipToScreen(_viewNormalDialog);

                    // The keytip should be centered at the bottom of the view
                    Point screenPt = new Point(viewRect.Left + (viewRect.Width / 2), viewRect.Bottom + 4);

                    keyTipList.Add(new KeyTipInfo(true, _ribbonGroup.KeyTipDialogLauncher, screenPt,
                                                  _viewNormalDialog.ClientRectangle, _viewNormalDialog.DialogButtonController));
                }

                // Populate with key tips for the content of the group
                _layoutNormalContent.GetGroupKeyTips(keyTipList);
            }
        }