ToolbarButtonExtensionsToTooltipText Method | |
Gives a translated help text as Tooltip Text. If not found in dictionary then give parameter value back.
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ToTooltipText(
this Dictionary<string, string> pDictionary,
Enum pValue
)
<ExtensionAttribute>
Public Shared Function ToTooltipText (
pDictionary As Dictionary(Of String, String),
pValue As Enum
) As String
Parameters
- pDictionary
- Type: System.Collections.GenericDictionaryString, String
Dictionary UI e.g. SOWIWeb.Helper.Session.DictionaryUI - pValue
- Type: SystemEnum
An item of enumeration
Return Value
Type:
String[Missing <returns> documentation for "M:SOWIWeb.Helper.ToolbarButtonExtensions.ToTooltipText(System.Collections.Generic.Dictionary{System.String,System.String},System.Enum)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DictionaryString,
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This extension to does easier translation of Tootip Text. The dictionary UI group is "Help" so is identification "Help" plus item name of his enumeration.
When the Debug mode is active, all non-existent entries are written to the Debug window
Examples Dictionary<string, string> DictionaryUI = new Dictionary<string, string>();
DictionaryUI.Add("HelpHome", "Go to home");
TootipText = DictionaryUI.ToTooltipText(SOWIWeb.Helper.ToolbarButtonsIndex.Home);
See Also