IEditorView.SelectViewDefinition method

Namespace: NextDesign.Desktop

Description

Switches the view displayed in the editor. Only the view definition corresponding to the model of the editor that can be obtained with ViewDefinitions can be specified in the view definition.

argument

Name Type Description
viewDefinition IEditorDef View Definition

You can specify the view definition corresponding to the model of the editor that you can get with ViewDefinitions.

Return value

  • void

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null is specified for viewDefinition
Illegal operation ExtensionInvalidOperationException When a view definition that cannot be displayed with this editor is specified.
For example, the following cases are applicable.
-Specify the view definition that does not correspond to the model displayed in the editor.
-Specify the view definition that can be displayed only in the sub editor for the main editor.