Skip to main content
A newer version of this page is available. .

LayoutSerializationOptions.RestoreLayoutItemText Property

Gets or sets whether layout items’ captions are restored when restoring the control’s layout from a data store.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

[DefaultValue(true)]
public virtual bool RestoreLayoutItemText { get; set; }

Property Value

Type Default Description
Boolean **true**

true if layout items’ captions are restored when restoring the control’s layout from a data store; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to RestoreLayoutItemText
DataLayoutControl
.OptionsSerialization.RestoreLayoutItemText
LayoutControl
.OptionsSerialization.RestoreLayoutItemText

Remarks

By default, the RestoreLayoutItemText property is set to true. In this instance, loading a layout from a data store (an XML file, stream or the system registry) loads layout items’ captions from the data store and applies them to the existing layout items. When creating localizable applications that support multiple cultures, this functionality should be disabled. To prevent layout items’ captions from being restored, set the RestoreLayoutItemText property to false.

See Also