Skip to main content

Saving and Restoring Bar Layout

The bar layout contains settings for all toolbars and bar item links that determine their behavior, position, size, etc. Once saved, a layout can be applied to any bar manager. This allows you to customize a toolbar only once, and then apply its saved settings to other toolbars in different applications, thus restoring the original bar’s layout.

The ExpressBars Suite allows you to save and restore a bar layout automatically between application runs, and also provides a set of specially designed methods to do this manually at arbitrary points in an application.

Note

Bar items within a bar manager and within a stored layout are identified by their names, accessible via their Name properties. For bar items created at design time, the Name properties are initialized automatically. For bar items created programmatically, you need to specify their Name properties manually, to allow the layout of the bars to be correctly saved and restored. You can use the bar manager’s GetUniqueItemName method for this purpose.

Please refer to the following topics that describe in detail each of these options:

Saving and Restoring Bar Layout Automatically

Saving and Restoring Bar Layout Manually

See Also