Skip to main content

IViewDefinitions.NewCustomElementDef method

Namespace: NextDesign.Core

Description

Generates a custom editor element definition for the specified model class.

argument

NameTypeDescription
editorICustomEditorDefinitionCustom editor definition
Null cannot be specified.
namestringCustom editor element definition name
Null or empty string cannot be specified.
modelClassIClassModel metaclass
null cannot be specified.
elementTypeIdstringEditor element type identifier
Null or empty string cannot be specified.
pathstringPath string of the corresponding metaclass
Specify null for elements that do not correspond to the field.
The default value is null.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for editor
When null is specified for name or when an empty string is specified
When a character string that cannot be used is specified for name
null is specified for modelClass. When specified
When null or an empty string is specified for elementTypeId
Field not foundExtensionFieldNotFoundExceptionIf the field specified by the path cannot be found
Not SupportedExtensionNotSupportedExceptionIf the current edition of the application is not supported