Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutSerializationOptions.RestoreDockPanelsText Property

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
Boolean true

true to restore the captions of dock panels when a layout is restored; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to RestoreDockPanelsText
DockManager
.SerializationOptions .RestoreDockPanelsText

#Remarks

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