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.SaveWorkspace(String, Object) Method

Saves the workspace with the specified name to a file or stream.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool SaveWorkspace(
    string name,
    object path
)

#Parameters

Name Type Description
name String

A String that specifies the name of the workspace to be saved.

path Object

The destination where the workspace is saved.

#Returns

Type Description
Boolean

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

#Remarks

The SaveWorkspace method can save workspaces to files and streams. To save a workspace to a file, pass the String, specifying the path to the file, as the path parameter. To save a workspace to a stream, pass the Stream object instead.

Use the WorkspaceManager.LoadWorkspace method to load a workspace from a file or stream.

See Also