Show TOC

string RibbonGetKeyTip(IRibbonControl ribbonControl);Locate this document in the navigation structure

Sets KeyTip for custom buttons or groups.

To use the key tips, the user clicks the "F10" or "Alt" on the keyboard.

If you do not want to set keytips, enter return string.Empty;

Example
 /// <summary>
 ///Not mandatory
 ///</summary>
 ///<param name="ribbonControl"></param>
 ///<returns></returns> 
 publicstring RibbonGetKeyTip(IRibbonControl ribbonControl)
 { 
   switch (ribbonControl.Id)
   {
     case StarButton:
       return"AR";
     case PlusButton:
       return"ST";
   }
   returnnull;
 }