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.v24.2.dll
Declaration
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoSaveInRegistry { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | 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.