CaptionHelper.SetLocalizedText(IModelLocalizationGroup, IList<String>, IList<String>) Method

Performs a batch update of the IModelLocalizationItem.Value property values for the LocalizationItem child nodes of a particular LocalizationGroup node.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public static void SetLocalizedText(
    IModelLocalizationGroup node,
    IList<string> itemNames,
    IList<string> itemValues
)
Public Shared Sub SetLocalizedText(
    node As IModelLocalizationGroup,
    itemNames As IList(Of String),
    itemValues As IList(Of String)
)

Parameters

Type Name Description
IModelLocalizationGroup node

An IModelLocalizationGroup object, representing the LocalizationGroup node whose LocalizationItem child nodes' property values will be updated.

IList<String> itemNames

An IList<String> object representing a collection of the LocalizationItem node names, for which new values must be assigned to the IModelLocalizationItem.Value properties.

IList<String> itemValues

An IList<String> object representing values that must be assigned to the IModelLocalizationItem.Value properties of the nodes specified by the itemNames parameter.

Remarks

If the LocalizationItem node specified by an item in the itemNames list does not exist, it is created.

The Application Model has the Localization node, which allows localization of various constants. The Localization node is used to localize custom strings used in an XAF application. The node contains LocalizationGroup child nodes. Each LocalizationGroup child node contains a set of LocalizationItem child nodes. The SetLocalizedText method allows you to change values of LocalizationItems belonging to a particular LocalizationGroup.

To see an example of localizing custom string constants, refer to the How to: Localize Custom String Constants help topic.

See Also