Back to Devexpress

WorkspaceManager.SetSerializationEnabled(IComponent, Boolean, Boolean) Method

windowsforms-devexpress-dot-utils-dot-workspacemanager-dot-setserializationenabled-x28-system-dot-componentmodel-dot-icomponent-system-dot-boolean-system-dot-boolean-x29.md

latest1.9 KB
Original Source

WorkspaceManager.SetSerializationEnabled(IComponent, Boolean, Boolean) Method

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

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static void SetSerializationEnabled(
    IComponent component,
    bool enabled,
    bool excludeChildren = false
)
vb
Public Shared Sub SetSerializationEnabled(
    component As IComponent,
    enabled As Boolean,
    excludeChildren As Boolean = False
)

Parameters

NameTypeDescription
componentIComponent

A Component that is the target control.

| | enabled | Boolean |

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

|

Optional Parameters

NameTypeDefaultDescription
excludeChildrenBooleanFalse

true to ingore child controls of the target control; otherwise, false.

|

See Also

WorkspaceManager Class

WorkspaceManager Members

DevExpress.Utils Namespace