Version

KeyTip Property (RibbonTab)

Returns or sets a string with a maximum of 3 characters that represents the mnemonic that is displayed when using keytips.
Syntax
'Declaration
 
Public Property KeyTip As String
public string KeyTip {get; set;}
Exceptions
ExceptionDescription
System.ArgumentException The value assigned has more than 3 characters.
Remarks

Key tips are displayed when the ribbon is showing and the Alt key is pressed.

If the key tip for the ribbon tab conflicts with another tool in the same container, this key tip may be changed.

By default, if the key tip is not set for the ribbon tab, a unique key tip will be auto-generated for the ribbon tab. UltraToolbarsManager.AutoGenerateKeyTips and UltraToolbarsManager.Office2007UICompatibility must be False for key tips to not auto-generate.

Example
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolBars

' Add a RibbonTab
Dim ribbonTab As RibbonTab = Me.UltraToolbarsManager1.Ribbon.Tabs.Add("Ribbon Tab Key")

' Set the caption
ribbonTab.Caption = "Ribbon Tab Caption"

' Add a Contextual Tab Group if it doesn't already exist.
If (Me.UltraToolbarsManager1.Ribbon.ContextualTabGroups.Exists("contextualTabGroup1") = False) Then
	Me.UltraToolbarsManager1.Ribbon.ContextualTabGroups.Add("contextualTabGroup1")
End If

' Put the new RibbonGroup into the Contextual Tab Group
ribbonTab.ContextualTabGroupKey = "contextualTabGroup1"

' Set the KeyTip
ribbonTab.KeyTip = "R"

' Make the new RibbonTab visible.
ribbonTab.Visible = True

' Add some groups. 
ribbonTab.Groups.Add("Clipboard")
ribbonTab.Groups.Add("Font")
ribbonTab.Groups.Add("Styles")
using Infragistics.Win;
using Infragistics.Win.UltraWinToolBars;


// Add a RibbonTab
RibbonTab ribbonTab = this.ultraToolbarsManager1.Ribbon.Tabs.Add("Ribbon Tab Key");            

// Set the caption
ribbonTab.Caption = "Ribbon Tab Caption";

// Add a Contextual Tab Group if it doesn't already exist.
if (this.ultraToolbarsManager1.Ribbon.ContextualTabGroups.Exists("contextualTabGroup1") == false)
	this.ultraToolbarsManager1.Ribbon.ContextualTabGroups.Add("contextualTabGroup1");

// Put the new RibbonGroup into the Contextual Tab Group
	ribbonTab.ContextualTabGroupKey = "contextualTabGroup1";

// Set the KeyTip
ribbonTab.KeyTip = "R";

// Make the new RibbonTab visible.
ribbonTab.Visible = true;

// Add some groups. 
ribbonTab.Groups.Add("Clipboard");
ribbonTab.Groups.Add("Font");
ribbonTab.Groups.Add("Styles");
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also