Class AddWorkspaceTransform
- Namespace
- Whim
- Assembly
- Whim.dll
Create a workspace with the given
Name
and layout engines.
If this transform is called prior to initialization, then IWorkspace creation is deferred.
null is returned by the transform if the workspace creation was deferred.public record AddWorkspaceTransform : Transform<Guid>, IEquatable<Transform<Guid>>, IEquatable<AddWorkspaceTransform>
- Inheritance
-
AddWorkspaceTransform
- Implements
- Inherited Members
Constructors
AddWorkspaceTransform(string?, IEnumerable<CreateLeafLayoutEngine>?, Guid)
Create a workspace with the given
Name
and layout engines.
If this transform is called prior to initialization, then IWorkspace creation is deferred.
null is returned by the transform if the workspace creation was deferred.public AddWorkspaceTransform(string? Name = null, IEnumerable<CreateLeafLayoutEngine>? CreateLeafLayoutEngines = null, Guid WorkspaceId = default)
Parameters
Name
string- The name of the workspace. Defaults to null, which will generate the name
Workspace {n}
. CreateLeafLayoutEngines
IEnumerable<CreateLeafLayoutEngine>- The layout engines to add to the workspace. Defaults to null, which will use the CreateLayoutEngines function.
WorkspaceId
Guid- The ID of the workspace. Defaults to NewGuid().
Properties
CreateLeafLayoutEngines
The layout engines to add to the workspace. Defaults to null, which will
use the CreateLayoutEngines function.
public IEnumerable<CreateLeafLayoutEngine>? CreateLeafLayoutEngines { get; init; }
Property Value
Name
The name of the workspace. Defaults to null, which will generate the name
Workspace {n}
.public string? Name { get; init; }
Property Value
WorkspaceId
The ID of the workspace. Defaults to NewGuid().
public Guid WorkspaceId { get; init; }