Back to Devexpress

Localizer.Active Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-localizer.md

latest3.2 KB
Original Source

Localizer.Active Property

Gets or sets a localizer object providing localization of the editors’ interface at runtime.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public static XtraLocalizer<StringId> Active { get; set; }
vb
Public Shared Property Active As XtraLocalizer(Of StringId)

Property Value

TypeDescription
XtraLocalizer<StringId>

A Localizer descendant which is used to localize the editors’ interface at runtime.

|

Remarks

The active Localizer provides default captions for all editors’ elements. You must create a Localizer descendant to localize the editors. Once an appropriate Localizer descendant is created, assign it to the static Active property for it to take effect.

Please refer to the Localization topic for detailed information on how editors can be localized.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Active property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/Form1.cs#L8

csharp
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = new MySchedulerLocalizer();
DevExpress.XtraEditors.Controls.Localizer.Active = new MyDateNavigatorLocalizer();
#endregion #ProgramRunLocalizer

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/ApplicationEvents.vb#L12

vb
DevExpress.XtraScheduler.Localization.SchedulerLocalizer.Active = New MySchedulerLocalizer()
    DevExpress.XtraEditors.Controls.Localizer.Active = New MyDateNavigatorLocalizer()
End Sub

See Also

Localizer Class

Localizer Members

DevExpress.XtraEditors.Controls Namespace