Skip to main content
All docs
V24.2

WorkspaceManager.RestoreLayout(Control, Stream, Predicate<IComponentProperty>) Method

SECURITY NOTE

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Loads the layout of the specified control from a stream.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public static void RestoreLayout(
    Control targetControl,
    Stream stream,
    Predicate<IComponentProperty> propertyDeserializing = null
)

Parameters

Name Type Description
targetControl Control

A control whose layout is to be loaded.

stream Stream

A Stream with the control’s layout.

Optional Parameters

Name Type Default Description
propertyDeserializing Predicate<DevExpress.Utils.IComponentProperty> null

The method that defines a set of criteria and allows you to filter deserialized properties.

See Also