Skip to main content
Bar

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

BarManager.SaveToRegistry(String) Method

Saves the BarManager component’s state to the system registry.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool SaveToRegistry(
    string path
)

#Parameters

Name Type Description
path String

Location of the BarManager data within the system registry.

#Returns

Type Description
Boolean

true if the operation is successfully completed; otherwise, false.

#Remarks

This method is obsolete. Use the BarManager.SaveLayoutToRegistry method instead.

#Example

The following code demonstrates how to write and read a BarManager’s state to/from the system registry. The full path for the bars layout will be: HKEY_CURRENT_USER\DevExpress\XtraBars\States\MainState.

    string regKey = "DevExpress\\XtraBars\\States\\MainState";
    barManager1.SaveLayoutToRegistry(regKey);

    //...

    barManager1.RestoreLayoutFromRegistry(regKey);
See Also