Skip to main content
A newer version of this page is available. .

RibbonQuickAccessToolbar.SaveLayoutToRegistry(String) Method

Saves the layout of the RibbonQuickAccessToolbar‘s items to the system registry.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

public virtual bool SaveLayoutToRegistry(
    string path
)

Parameters

Name Type Description
path String

A string value which specifies the system registry path. If the specified path doesn’t exist, this method does nothing.

Returns

Type Description
Boolean

true if the layout has been saved to the system registry; otherwise, false.

Remarks

Bar items within the RibbonQuickAccessToolbar and within the stored layout are identified by unique identifiers specified by the BarItem.Id property. To correctly save the layout, ensure that this property is set to a unique value for each bar item. For items created at design time, the BarItem.Id properties are initialized automatically. For items created in code, you need to manually initialize their BarItem.Id properties.

Tip

You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also