Back to Devexpress

BarManager.AutoSaveInRegistry Property

windowsforms-devexpress-dot-xtrabars-dot-barmanager-2ca0cd63.md

latest3.2 KB
Original Source

BarManager.AutoSaveInRegistry Property

Gets or sets a value indicating whether the bars’ layout is saved to and loaded from the system registry automatically.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoSaveInRegistry { get; set; }
vb
<DefaultValue(False)>
<DXCategory("Behavior")>
Public Property AutoSaveInRegistry As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the bars’ layout is saved to and loaded from the system registry automatically; otherwise, false ;

|

Remarks

If the AutoSaveInRegistry property is set to true , the bars’ layout is automatically restored from and stored to the registry when the form that owns the bars is being loaded and closed, respectively. The registry path where the information is stored is specified by the BarManager.RegistryPath property.

Note that automatic saving/loading of settings works only if the Bar Manager belongs to a Form class instance. Otherwise, you may need to manually save/restore settings using, for instance, the BarManager.SaveToRegistry or BarManager.RestoreFromRegistry methods. It is also possible to store the settings in a stream and an XML file.

Refer to the Saving and Restoring a Bars Layout Automatically and Saving and Restoring a Bars Layout Manually documents for more information.

See Also

RegistryPath

RestoreFromRegistry

RestoreFromStream(Stream)

RestoreFromXml(String)

SaveToRegistry

SaveToStream(Stream)

SaveToXml(String)

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace