corelibraries-devexpress-dot-utils-dot-localization-dot-xtralocalizer-dot-querylocalizedstringeventargs.md
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.v25.2.dll
NuGet Package : DevExpress.Data
public Type ContainerType { get; }
Public ReadOnly Property ContainerType As Type
| Type | Description |
|---|---|
| Type |
The type of a localizer object or data form shipped as part of a DevExpress UI control.
|
The e.ContainerType event parameter specifies different “types” of values depending on the localization-related event.
The e.ContainerType event parameter specifies the type of a localizer object (for example, DevExpress.XtraGrid.Localization.GridResLocalizer).
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)) {
// ...
}
}
Private Sub XtraLocalizer_QueryLocalizedStringContainerResource(ByVal sender As Object, ByVal e As XtraLocalizer.QueryLocalizedStringEventArgs)
If e.ContainerType Is GetType(DevExpress.XtraBars.Customization.CustomizationControl) Then
' ...
End If
End Sub
See Also
XtraLocalizer.QueryLocalizedStringEventArgs Class