GetToolTipTitle Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets the tool tip title that is associated with an item and specified by the identifier parameter. Such an identifier can be the string conversion of an enumeration that is associated with an item (such as RibbonFormattingTab.RibbonItem.TXITEM_Paste). By default CultureInfo.CurrentUiCulture determines the language of the tool tip title. If no resource translation is provided, that corresponds to the current ui culture or the value of the culture paramter, the returned tool tip title is based on the English resources.
Syntax
GetToolTipTitle(string)
Gets the tool tip title that is associated with the specified item identifier.
public static string GetToolTipTitle(string identifier);Public Shared Function GetToolTipTitle(identifier As String) As String| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested tool tip title. |
GetToolTipTitle(string, CultureInfo)
Gets the tool tip title that is associated with the specified item identifier in the specified language.
public static string GetToolTipTitle(string identifier, CultureInfo culture);Public Shared Function GetToolTipTitle(identifier As String, culture As CultureInfo) As String| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested tool tip title. |
| culture | Specifies the language in which the tool tip title is returned. |
Return Value
The tool tip title that is assigned to the item. If no tool tip title is associated with the source, the method returns an empty string.
Examples
The following example retrieves tool tip title from the resource provider.
var result = TXTextControl.WPF.ResourceProvider.GetToolTipTitle("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"));
Console.WriteLine($"Get Tool Tip Title result: {result}");Dim result = TXTextControl.WPF.ResourceProvider.GetToolTipTitle("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"))
Console.WriteLine($"Get Tool Tip Title result: {result}")