Skip to main content
A newer version of this page is available.
All docs
V19.2

WorkspaceManager.SetSerializationEnabled(Component, Boolean) Method

Allows you to exclude a specific control from the global application workspace.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.2.dll

Declaration

public static void SetSerializationEnabled(
    Component component,
    bool enabled
)

Parameters

Name Type Description
component Component

A Component that is the target control.

enabled Boolean

false to force the WorkspaceManager to ignore the target control; otherwise, true.

Remarks

By default, the WorkspaceManager automatically detects all supported DevExpress controls and counts in their layouts when saving/restoring application workspaces. You can use the static SetSerializationEnabled method to restrict the WorkspaceManager from working with the target control’s layouts.

See Also