Skip to main content

IViewDefinitions.NewElementDef method

Namespace: NextDesign.Core

Description

Generates an editor element definition for the specified model class.

argument

NameTypeDescription
editorIEditorDefEditor definition
namestringeditor element definition name
modelClassIClassModel Metaclass
typestringEditor element types
-"SimpleShape": Simple Shape
-"CompartmentShape": Compartment Shape
-"Port": Port Shape
-"ConnectorShape" : Connector Shape
-"TextBox": Text Box
-"CheckBox": Check Box
-"ComboBox": Combo Box
-"List": List
-"Grid": Grid
-"ModelReferenceControl": Model Reference Control
pathstringPath string of the corresponding metaclass
Specify null for elements that do not correspond to the field.
The default value is null.
parentIElementDefParent definition element
Specify null when defining as an element directly under the editor definition.
The default value is null.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf the parameter is invalid
-Editor definition is not specified
-Metaclass is not specified
Invalid typeExtensionInvalidTypeExceptionWhen an unsupported editor element type is specified
-An unsupported element type is specified for type
-The parameter specification is inconsistent with the type specified for type. To
Field not foundExtensionFieldNotFoundExceptionIf the field specified in the path is not found
Duplicate definitionExtensionDuplicationExceptionWhen the view element definition name is duplicated