Skip to main content

LayoutSerializationOptions.DiscardOldItems Property

Gets or sets whether the items that exist in a layout when it’s restored, but that don’t exist in the current layout control, should be discarded or added to the control.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
public virtual bool DiscardOldItems { get; set; }

Property Value

Type Default Description
Boolean false

true to discard the items that exist in the layout being restored, but don’t exist in the current layout control; false to add these items to the layout control.

Property Paths

You can access this nested property as listed below:

Object Type Path to DiscardOldItems
LayoutControl
.OptionsSerialization .DiscardOldItems

Remarks

The DiscardOldItems option affects how the control’s layout is restored. If it’s set to true, the items that exist in the layout being loaded, but do not exist in the current layout control will not be re-created. Otherwise, these items will be added to the layout control.

See Also