Gets the key tip that is associated with an item and specified by the identifier parameter. Such an identifier can be the string conversion of an enum that is associated with an item (such as RibbonFormattingTab.RibbonItem.TXITEM_Paste). By default CultureInfo.CurrentUiCulture determines the language of the key tip resources. If no resource translation is provided, that corresponds to the current ui culture or the value of the culture paramter, the returned key tip is based on the English resources.

GetKeyTip(String)

public static string GetKeyTip(string identifier);
Public Shared Function GetKeyTip(ByVal identifier As String) As String

GetKeyTip(String, System.Globalization.CultureInfo)

public static string GetKeyTip(string identifier, System.Globalization.CultureInfo culture);
Public Shared Function GetKeyTip(ByVal identifier As String, ByVal culture As System.Globalization.CultureInfo) As string

Parameters

Parameter Description
identifier The identifier of the item that is associated with the requested key tip.
culture Specifies the language in which the key tip is returned.

Return Value

The key tip that is assigned to the item. If no key tip is associated with the source, the method returns an empty string.