Skip to main content
All docs
V24.2

Localizing Your DevExpress-powered .NET App – Your Feedback Matters

We hope to validate a few hypotheses about our Localization Service, Unified Component Installer, overall localization quality, and ways to translate strings in general.

Take the survey Not interested

XtraLocalizer.QueryLocalizedStringEventArgs.StringIDType Property

Gets the type of the resource string identifier for DevExpress UI controls.

Namespace: DevExpress.Utils.Localization

Assembly: DevExpress.Data.v24.2.dll

NuGet Package: DevExpress.Data

#Declaration

public Type StringIDType { get; }

#Property Value

Type Description
Type

The type of the resource string identifier (for example, DevExpress.XtraEditors.Controls.StringId).

#Remarks

Use the e.StringID and e.ResourceStringID parameters to obtain the enumeration member and its value in 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)
             */
        }
    }
}
See Also