windowsforms-devexpress-dot-utils-dot-workspacemanager-03c9d334.md
Provides access to all currently active workspaces.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[Browsable(false)]
public List<IWorkspace> Workspaces { get; }
<Browsable(False)>
Public ReadOnly Property Workspaces As List(Of IWorkspace)
| Type | Description |
|---|---|
| List<DevExpress.Utils.IWorkspace> |
A List structure that stores all currently active workspaces.
|
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
private void Init() {
this.repositoryItemLookUpEdit1.DataSource = this.workspaceManager1.Workspaces;
this.repositoryItemLookUpEdit1.DisplayMember = "Name";
winforms-workspacemanager-saving-load-app-layout/VB/T190543/Form1.vb#L34
Private Sub Init()
repositoryItemLookUpEdit1.DataSource = workspaceManager1.Workspaces
repositoryItemLookUpEdit1.DisplayMember = "Name"
See Also