Back to Devexpress

LayoutSerializationOptions.RestoreDockPanelsText Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-layoutserializationoptions.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
public virtual bool RestoreDockPanelsText { get; set; }
vb
<DefaultValue(True)>
Public Overridable Property RestoreDockPanelsText As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath 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

TabText

Text

LayoutSerializationOptions Class

LayoutSerializationOptions Members

DevExpress.XtraBars.Docking Namespace