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.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Parameters
Name | Type | Description |
---|---|---|
node | IModelLocalizationGroup | An IModelLocalizationGroup object, representing the LocalizationGroup node whose LocalizationItem child nodes’ property values will be updated. |
itemNames | IList<String> | An IList<String> object representing a collection of the LocalizationItem node names, for which new values must be assigned to the IModelLocalizationItem.Value properties. |
itemValues | IList<String> | 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.