Skip to main content

LocalizationItemCollection.SaveLocalization(IEnumerable<Object>, String, Boolean) Method

Updates collection items related to the specified reporting components (controls) and the specified culture. Removes unnecessary items.

Namespace: DevExpress.XtraReports.Localization

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void SaveLocalization(
    IEnumerable<object> localizableComponents,
    string culture,
    bool collectGarbage = false
)

Parameters

Name Type Description
localizableComponents IEnumerable<Object>

A list of reporting components (controls) whose related localization items should be in the collection.

culture String

A string that is the name of the culture.

Optional Parameters

Name Type Default Description
collectGarbage Boolean False

True to remove unnecessary localization items; otherwise, false.

Remarks

The method removes all localization items whose reporting component (control) is not specified in the list passed as a parameter. The method updates collection items with new values or creates and adds localization items if they are not found in the collection.

See Also