Back to Devexpress

BarManager.OptionsLayout Property

windowsforms-devexpress-dot-xtrabars-dot-barmanager-a2b0b76e.md

latest4.3 KB
Original Source

BarManager.OptionsLayout Property

Contains options that control how the bars’ layout is stored to/restored from a stream, xml file or system registry.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Options")]
public BarManagerOptionsLayout OptionsLayout { get; }
vb
<DXCategory("Options")>
Public ReadOnly Property OptionsLayout As BarManagerOptionsLayout

Property Value

TypeDescription
BarManagerOptionsLayout

An object that provides options that control how the bars’ layout is stored and restored.

|

Remarks

The following methods save the layout:

The following methods restore the layout:

The OptionsLayout property provides access to settings that affect loading and saving layouts:

  • BarManagerOptionsLayout.AllowAddNewItems - This option affects how the bar layout is restored. If it’s set to true (the default value), items that exist in the current layout, but not in the layout being loaded, are retained. If the option is disabled, these items are destroyed.
  • BarManagerOptionsLayout.AllowRemoveOldItems - This option affects how the bar layout is restored. If it’s set to false (the default value), items that exist in the layout being loaded, but not in the current layout, are added to the current layout. If the option is enabled, these items are discarded.
  • OptionsLayoutBase.LayoutVersion - Specifies the version of the bar layout.

See Also

SaveLayoutToStream(Stream)

SaveLayoutToXml(String)

SaveLayoutToJson

SaveLayoutToRegistry

RestoreLayoutFromStream(Stream)

RestoreLayoutFromXml(String)

RestoreLayoutFromJson

RestoreLayoutFromRegistry

LayoutUpgrade

Save and Restore Layouts of DevExpress controls

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace