Skip to main content

IViewDefinitions.NewCustomElementDef method

Namespace: NextDesign.Core

Description

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

argument

NameTypeDescription
editorICustomEditorDefinitionCustom editor definition
Cannot be null.
namestringCustom editor element definition name
You cannot specify null or an empty string.
modelClassIClassModel metaclass
Cannot be null.
elementTypeIdstringEditor element type identifier
You cannot specify null or an empty string.
pathstringSpecify null for elements that do not correspond to the path string
field of the corresponding metaclass.
The default is null.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for editor
If null is specified for name or if an empty string is specified
If a character string that cannot be used is specified for name
If null is specified for modelClass If specified
If null or an empty string is specified for elementTypeId
Field not foundExtensionFieldNotFoundExceptionIf the field specified in the path is not found
UnsupportedExtensionNotSupportedExceptionIf the current edition of the application does not support it