.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication.SetLanguage(String) Method

Sets the specified language for the current application when called before the application windows are shown.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public void SetLanguage(
    string languageName
)
Public Sub SetLanguage(
    languageName As String
)
public void SetLanguage(
    string languageName
)
Public Sub SetLanguage(
    languageName As String
)
public void SetLanguage(
    string languageName
)
Public Sub SetLanguage(
    languageName As String
)

Parameters

Name Type Description
languageName String

A string value representing the name of the language that must be used in the application.

Parameters

Name Type Description
languageName String

A string value representing the name of the language that must be used in the application.

Parameters

Name Type Description
languageName String

A string value representing the name of the language that must be used in the application.

Remarks

XAF application uses the language specified by the IModelApplication.PreferredLanguage property of the Application Model's IModelApplication node (see Localization Basics). To set another language during application startup, use the SetLanguage method. The method assigns the languageName parameter value to the PreferredLanguage property. So, the specified language will be used even after the application is restarted.

See the SetFormattingCulture article for an example.

Note

XAF applications are not designed to switch the language during application execution.

See Also