Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public static string GetLocalizedString(
    string functionCaption
)

#Parameters

Name Type Description
functionCaption String

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

#Returns

Type Description
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