Skip to main content

Localizer.CreateDefaultLocalizer() Method

Creates and returns an EditResLocalizer object containing resources for the thread’s language and regional settings (culture).

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public static XtraLocalizer<StringId> CreateDefaultLocalizer()

Returns

Type Description
XtraLocalizer<StringId>

An EditResLocalizer object containing resources for the thread’s culture.

Example

The following sample code demonstrates how to change the current culture used by the Resource Manager and perform runtime XtraEditors localization.

using System.Globalization;
using System.Threading;
using DevExpress.XtraEditors.Controls;

Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
Localizer.Active = Localizer.CreateDefaultLocalizer();
See Also