Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorkspaceManager.LoadWorkspace(String, Object) Method

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

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool LoadWorkspace(
    string name,
    object path
)

#Parameters

Name Type Description
name String

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

path Object

The source from which the workspace is loaded.

#Returns

Type Description
Boolean

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

#Remarks

The LoadWorkspace method can load workspaces from files and streams. To load a workspace from a file, pass the String, specifying the path to the file, 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