Skip to main content
All docs
V23.2

XtraLocalizer.QueryLocalizedStringEventArgs.StringID Property

Gets the enumeration member in StringIDType that corresponds to the processed resource string.

Namespace: DevExpress.Utils.Localization

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public Enum StringID { get; }

Property Value

Type Description
Enum

The enumeration member in StringIDType that corresponds to the processed resource string.

Remarks

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)
             */
        }
    }
}

Note

When handling the QueryLocalizedStringContainerResource event, the e.StringID parameter is always set to XtraLocalizer.ContainerResource.Default.

See Also