Back to Devexpress

WorkspaceManager.Workspaces Property

windowsforms-devexpress-dot-utils-dot-workspacemanager-03c9d334.md

latest3.5 KB
Original Source

WorkspaceManager.Workspaces Property

Provides access to all currently active workspaces.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public List<IWorkspace> Workspaces { get; }
vb
<Browsable(False)>
Public ReadOnly Property Workspaces As List(Of IWorkspace)

Property Value

TypeDescription
List<DevExpress.Utils.IWorkspace>

A List structure that stores all currently active workspaces.

|

Remarks

The Workspaces property is the fundamental WorkspaceManager property that provides its functionality. All captured (WorkspaceManager.CaptureWorkspace) or loaded (WorkspaceManager.LoadWorkspace) workspaces are added to this collection. A workspace can be applied (WorkspaceManager.ApplyWorkspace) or saved to a local file (WorkspaceManager.SaveWorkspace) only if it is stored within the Workspaces collection. See the Workspace Manager topic for more info.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Workspaces property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-workspacemanager-saving-load-app-layout/CS/T190543/Form1.cs#L32

csharp
private void Init() {
    this.repositoryItemLookUpEdit1.DataSource = this.workspaceManager1.Workspaces;
    this.repositoryItemLookUpEdit1.DisplayMember = "Name";

winforms-workspacemanager-saving-load-app-layout/VB/T190543/Form1.vb#L34

vb
Private Sub Init()
    repositoryItemLookUpEdit1.DataSource = workspaceManager1.Workspaces
    repositoryItemLookUpEdit1.DisplayMember = "Name"

See Also

Workspace Manager

WorkspaceManager Class

WorkspaceManager Members

DevExpress.Utils Namespace