Skip to main content

IViewDefinitions.NewElementDef method

Namespace: NextDesign.Core

Description

Generates an editor element definition for the given model class.

argument

NameTypeDescription
editorIEditorDefEditor Definition
namestringeditor element definition name
modelClassIClassModel Metaclass
typestringType of editor element
- "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
pathstringSpecify null for elements that do not correspond to the path string
field of the corresponding metaclass.
The default is null.
parentIElementDefParent definition element
Specify null when defining as an element directly under the editor definition.
The default is null.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf parameter is invalid
- Editor definition not specified
- Metaclass not specified
Invalid typeExtensionInvalidTypeExceptionIf 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 do
Field not foundExtensionFieldNotFoundExceptionIf the field specified in the path was not found
Duplicate definitionExtensionDuplicationExceptionWhen view element definition names are duplicated