corelibraries-devexpress-dot-utils-dot-localization-dot-xtralocalizer-dot-querylocalizedstringeventargs-e255859d.md
Gets the value of the enumeration member in StringIDType that corresponds to the processed resource string, or the value that uniquely identifies the form’s UI element/control.
Namespace : DevExpress.Utils.Localization
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public string ResourceStringID { get; }
Public ReadOnly Property ResourceStringID As String
| Type | Description |
|---|---|
| String |
The value of the enumeration member in StringIDType that corresponds to the processed resource string.
|
Use the e.StringID and e.ResourceStringID parameters to obtain the enumeration member and its value in e.StringIDType, which correspond to the processed resource string.
private static void XtraLocalizer_QueryLocalizedString(object sender, XtraLocalizer.QueryLocalizedStringEventArgs e) {
if(e.StringIDType == typeof(DevExpress.XtraGrid.Localization.GridStringId)) {
if(e.StringID is DevExpress.XtraGrid.Localization.GridStringId.MenuColumnFilterMode) {
/*
* e.StringID = MenuColumnFilterMode (Enum)
* e.StringIDType = DevExpress.XtraGrid.Localization.GridStringId (Type)
* e.ResourcestringID = "GridStringId.MenuColumnFilterMode" (String)
*/
}
}
}
Private Shared Sub XtraLocalizer_QueryLocalizedString(ByVal sender As Object, ByVal e As XtraLocalizer.QueryLocalizedStringEventArgs)
If e.StringIDType Is GetType(DevExpress.XtraGrid.Localization.GridStringId) Then
If TypeOf e.StringID Is DevExpress.XtraGrid.Localization.GridStringId.MenuColumnFilterMode Then
' e.StringID = MenuColumnFilterMode (Enum)
' e.StringIDType = DevExpress.XtraGrid.Localization.GridStringId (Type)
' e.ResourcestringID = "GridStringId.MenuColumnFilterMode" (String)
End If
End If
End Sub
Note
When handling the QueryLocalizedStringContainerResource event, the e.ResourceStringID parameter gets a value that uniquely identifies the form’s UI element/control that requested the resource string ({ContainerType}.{controlName}.{propertyPath}).
void XtraLocalizer_QueryLocalizedStringContainerResource(object sender, XtraLocalizer.QueryLocalizedStringEventArgs e) {
if(e.ResourceStringID == "DevExpress.XtraBars.Customization.CustomizationControl.btClose.Text")) {
// ...
}
}
See Also
XtraLocalizer.QueryLocalizedStringEventArgs Class