Back to Devexpress

WorkspaceManager Members

windowsforms-devexpress-dot-utils-dot-workspacemanager-dot-underscore-members.md

latest20.0 KB
Original Source

WorkspaceManager Members

Manages layouts of all DevExpress controls in the application as one global workspace. Workspaces can be saved and restored to (from) a local storage or stream.

Constructors

NameDescription
WorkspaceManager()Initializes a new instance of the WorkspaceManager class with the default settings.
WorkspaceManager(IContainer)Initializes a new instance of the WorkspaceManager class with the specified settings.

Properties

NameDescription
AllowTransitionAnimationGets or sets whether or not changing workspaces within this WorkspaceManager should be followed by animation effects.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CloseStreamOnWorkspaceLoadingGets or sets whether this WorkspaceManager should automatically close streams opened when loading workspaces.
CloseStreamOnWorkspaceSavingGets or sets whether this WorkspaceManager should automatically close streams opened when saving workspaces.
ContainerGets the IContainer that contains the Component. Inherited from Component.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
RecentWorkspacesProvides access to the recently used workspaces collection.
SaveTargetControlSettingsGets or sets whether the WorkspaceManager should store settings like “Bounds” or “State” for the form assigned to the WorkspaceManager.TargetControl property.
ShowPathColumnInWorkspacesDialogGets or sets whether the “Workspaces” dialog should display the column that shows paths to workspace files.
SiteGets or sets the ISite of the Component. Inherited from Component.
TargetControlGets or sets a control whose layout is managed by this WorkspaceManager.
ThrowOnWorkspaceErrorGets or sets whether the application should throw the XmlException when a user attempts to apply a corrupt workspace. Regardless of this setting, the Workspace Manager also fires the WorkspaceError event that notifies you about the issue.
TransitionTypeGets or sets the transition animation that follows applying workspaces.
WorkspacesProvides access to all currently active workspaces.

Methods

NameDescription
ApplyWorkspace(String)Locates a workspace with the target name within the WorkspaceManager.Workspaces collection and applies it to the application.
CaptureWorkspace(String, Boolean)Captures the current form layout and places it to the WorkspaceManager.Workspaces collection under the specific name.
CreateObjRef(Type)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose()Releases all resources used by the Component. Inherited from Component.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
FromControl(Control) staticGets a WorkspaceManager stored within the target control.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protectedReturns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType()Gets the Type of the current instance. Inherited from Object.
GetWorkspace(Int32)Returns a workspace with a specific index from the WorkspaceManager.Workspaces collection.
GetWorkspace(String)Returns a workspace with a specific name from the WorkspaceManager.Workspaces collection.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
LoadWorkspace(String, Stream, Boolean)Loads a workspace from the target stream and places this workspace in the WorkspaceManager.Workspaces collection under the specific name.
LoadWorkspace(String, Stream)Loads a workspace from the target stream and places it in the WorkspaceManager.Workspaces collection under the specific name.
LoadWorkspace(String, Object, Boolean)Loads a workspace from the target file and places this workspace in the WorkspaceManager.Workspaces collection under the specific name.
LoadWorkspace(String, Object)Loads a workspace from the target local file and places it in the WorkspaceManager.Workspaces collection under the specific name.
LoadWorkspaces(Stream)Loads all workspaces in the target stream into the WorkspaceManager.Workspaces collection.
LoadWorkspaces(Object)Loads all workspaces in the target file into the WorkspaceManager.Workspaces collection.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RemoveWorkspace(String)Removes a workspace with the target name from the WorkspaceManager.Workspaces collection.
RenameWorkspace(String, String)Renames the target workspace.
ResetSerializationEnabled(IComponent) static
RestoreLayout(IEnumerable<IComponent>, Stream, Predicate<IComponentProperty>) staticLoads the layouts of specified controls from a stream.
RestoreLayout(IEnumerable<IComponent>, String, Predicate<IComponentProperty>) staticLoads the layouts of specified controls from a file.
RestoreLayout(Control, Stream, Predicate<IComponentProperty>) staticLoads the layout of the specified control from a stream.
RestoreLayout(Control, String, Predicate<IComponentProperty>) staticLoads the layout of the specified control from a file.
SaveLayout(IEnumerable<IComponent>, Stream, Predicate<IComponentProperty>) staticSaves the layouts of specified controls to a stream.
SaveLayout(IEnumerable<IComponent>, String, Predicate<IComponentProperty>) staticSaves the layouts of specified controls to a file.
SaveLayout(Control, Stream, Predicate<IComponentProperty>) staticSaves the layout of the specified control to a stream.
SaveLayout(Control, String, Predicate<IComponentProperty>) staticSaves the layout of the specified control to a file.
SaveWorkspace(String, Stream, Boolean)Saves a workspace from the WorkspaceManager.Workspaces collection to a stream.
SaveWorkspace(String, Object, Boolean)Saves a workspace from the WorkspaceManager.Workspaces collection to a local file.
SaveWorkspaces(Stream)Saves all workspaces in the WorkspaceManager.Workspaces collection to the target stream.
SaveWorkspaces(Object)Saves all workspaces in the WorkspaceManager.Workspaces collection to the target file.
SetSerializationEnabled(IComponent, Boolean, Boolean) staticAllows you to exclude a specific control from the global application workspace.
ToString()Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

NameDescription
AfterApplyWorkspaceOccurs after a workspace was applied.
BeforeApplyWorkspaceFires before the Workspace Manager applies a new workspace.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
PropertyDeserializingOccurs whenever a property is about to be restored from a workspace.
PropertySerializingOccurs whenever a property is about to be written into a workspace.
WorkspaceAddedOccurs whenever a new workspace was added to the WorkspaceManager.Workspaces collection.
WorkspaceCollectionChangedOccurs whenever the WorkspaceManager.Workspaces collection of the current Workspace Manager component changes.
WorkspaceErrorOccurs when a corrupt workspace is activated. Allows you to read the “args” parameter to identify the issue found in this layout. This event is followed by the XmlException if the WorkspaceManager.ThrowOnWorkspaceError property is enabled.
WorkspaceRemovedFires when a workspace was removed from the WorkspaceManager.Workspaces collection.
WorkspaceSavedOccurs after the WorkspaceManager.SaveWorkspace method was called.

See Also

WorkspaceManager Class

DevExpress.Utils Namespace