IDatabaseTreeItem.GetText Method

NOTE: This member is now obsolete. Use IDatabaseTreeItem.Text property instead.

Gets a family text (description) in the specified language.
<Obsolete("Use IDatabaseTreeItem.Text property instead.")> _ 
Function GetText( _ 
ByVal locale As String
) As String
This language is not supported or no code example is available.
[Obsolete("Use IDatabaseTreeItem.Text property instead.")] 
string GetText( 
string locale 
)
This language is not supported or no code example is available.

Parameters

locale
string

A locale for which the text will be retrieved. It has the standard form, whether the full one (En-us) or incomplete (En). It is case insensitive. If set to an empty string, a native language (neutral) text will be retrieved.

Return Value

string

A family text (description) in the specified language. null reference (Nothing in Visual Basic) if no text was found for the specified language.

Remarks
 

You can get the current QDV locale from IQdvEnvironment.InterfaceLocale property.

If a text in the specified locale is not found, the following fallback mechanism will be applied.

  1. If a complete locale was not found, an incomplete form will be tested.
  2. If not found, En-us and then En will be tested.
  3. If that fails, then native language string will be returned.

For example, for Fr-be, the following search path will be applied:

Fr-be > Fr > En-us > En > native

Version
 
Available since QDV 7.14.501.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition