windowsforms-devexpress-dot-xtrabars-dot-docking-dot-layoutserializationoptions.md
Gets or sets whether captions of dock panels are restored from the data store when a layout is restored from the store.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
public virtual bool RestoreDockPanelsText { get; set; }
<DefaultValue(True)>
Public Overridable Property RestoreDockPanelsText As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to restore the captions of dock panels when a layout is restored; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to RestoreDockPanelsText |
|---|---|
| DockManager |
.SerializationOptions .RestoreDockPanelsText
|
A dock panel’s captions are specified by the DockPanel.Text and DockPanel.TabText properties. When a layout of dock panels is saved to a data store, the captions of panels are saved as well. When a layout is restored from a data store, captions of panels are restored by default. To prevent captions from being restored and keep the current captions, set the RestoreDockPanelsText property to false.
See Also
LayoutSerializationOptions Class