XtraLocalizer.QueryLocalizedStringEventArgs.ContainerType Property
Gets the type of a localizer object or data form shipped as part of a DevExpress UI control.
Namespace: DevExpress.Utils.Localization
Assembly: DevExpress.Data.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Type | The type of a localizer object or data form shipped as part of a DevExpress UI control. |
Remarks
The e.ContainerType
event parameter specifies different “types” of values depending on the localization-related event.
QueryLocalizedString, QueryLocalizedStringNonTranslated Events
The e.ContainerType
event parameter specifies the type of a localizer object (for example, DevExpress.XtraGrid.Localization.GridResLocalizer
).
- The QueryLocalizedString event fires when the DevExpress UI control requests a resource string and allows you to translate or modify it as needed.
- The QueryLocalizedStringNonTranslated event fires for each non-localized resource string (if any) and allows you to collect non-localized resource strings for further translation.
QueryLocalizedStringContainerResource Event
The QueryLocalizedStringContainerResource event fires when a data form that ships as part of a DevExpress UI control (for example, a BookmarkForm
in the WinForms Rich Text Editor) requests a resource string for its UI element (input field, list, button, etc.).
The e.ContainerType
event parameter specifies the type of the data form (for example, DevExpress.XtraBars.Customization.CustomizationControl
).
void XtraLocalizer_QueryLocalizedStringContainerResource(object sender, XtraLocalizer.QueryLocalizedStringEventArgs e) {
if(e.ContainerType == typeof(DevExpress.XtraBars.Customization.CustomizationControl)) {
// ...
}
}