Back to Devexpress

Localizer.GetLocalizedString(String) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-localizer-dot-getlocalizedstring-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

Localizer.GetLocalizedString(String) Method

Gets the string, localized by the current Localizer, for the specified user interface element.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public static string GetLocalizedString(
    string functionCaption
)
vb
Public Shared Function GetLocalizedString(
    functionCaption As String
) As String

Parameters

NameTypeDescription
functionCaptionString

A String value specifying the UI element whose localized text content is to be obtained.

|

Returns

TypeDescription
String

A String value that is the localized text content of the specific UI element.

|

Remarks

Unlike the XtraLocalizer<T>.GetLocalizedString method that receives a StringId enumerator value as a parameter, the GetLocalizedString method receives a string value, checks if the value exists in the StringId enumerator and if it does - returns a corresponding Localizer.Active localizer’s string.

Generally, you do not need to use this method. Use the method overload inherited from the XtraLocalizer<T> class instead.

See Also

Active

GetLocalizedString(T)

Localizer Class

Localizer Members

DevExpress.XtraEditors.Controls Namespace