Skip to main content

IWorkspaceState Interface

Namespace: NextDesign.Desktop

Description

Workspace state management object.

Belonging area

NameDescription
Workspace ProjectA set of APIs to access the application workspace and projects open in the application.

Property

NameDescription
ActiveEditorSelectedModelSelected element in active editor
ActiveEditorSelectedModelsSelected elements (multiple) in active editor
CurrentModelCurrent model in current workspace
DisplayModeDisplay mode
InspectedObjectInspected element
The element currently being displayed in the inspector.
If there are no elements to display (i.e. the Inspector tab is not displayed), this will be null.
InspectedObjectsInspected elements (multiple)
The elements (multiple) currently being displayed in the Inspector.
If there are no elements to display in the Inspector, this will be an empty collection.
It does not necessarily include elements that can be obtained with IWorkspaceState.InspectedObject{get;}.

Method

NameDescription
SetActiveEditorSelectedModelSets the selected element of the active editor.
This API only changes the stored state, and does not change the selection state on the screen.
If you get the selected elements with IWorkspaceState.ActiveEditorSelectedModel{get;}, you can get the value changed by this API.
If you execute this function on the main editor, the model to be displayed in the sub-editor will be switched if the sub-editor's display mode is "Detail" mode.
If you specify a model other than the project being edited, nothing will be done and the function will terminate normally.
SetActiveEditorSelectedModelsSets the selected elements (multiple) in the active editor.
This API only changes the retained state, and the selection state on the screen will not change.
If you get the selected elements with IWorkspaceState.ActiveEditorSelectedModels{get;}, you can get the value changed by this API.
It does not necessarily include the selected elements that can be obtained with IWorkspaceState.ActiveEditorSelectedModel{get;}.
If you specify a model other than the project you are editing, it will be excluded from the selected elements.
SetCurrentModelSets the current model of the current workspace.
SetInspectedObjectSets the elements to be inspected.
SetInspectedObjectsSets the elements (multiple) to be inspected.