Skip to main content

WorkspaceManager.LoadWorkspace(String, Object) Method

Loads a workspace from a specified file or stream and adds it to the WorkspaceManager.Workspaces collection under a specified name.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public bool LoadWorkspace(
    string name,
    object path
)

#Parameters

Name Type Description
name String

A String that specifies the name that should be assigned to a loaded workspace.

path Object

The source from which a workspace is loaded.

#Returns

Type Description
Boolean

true if the workspace has been successfully loaded; otherwise false.

#Remarks

To load a workspace from a file, pass the file path as the path parameter. To load a workspace from a stream, pass the Stream object instead.

Use the WorkspaceManager.SaveWorkspace method to save a workspace to a file or stream.

See Also