Skip to main content

IViewDefinitions.NewCustomElementDef Method

Namespace: NextDesign.Core

Description

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

Arguments

NameTypeDescription
editorICustomEditorDefinitionCustom editor definition
Cannot be null.
namestringCustom editor element definition name
Cannot be null or an empty string.
modelClassIClassModel metaclass
Cannot be null.
elementTypeIdstringEditor element type identifier
Cannot be null or an empty string.
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 argumentExtensionArgumentExceptionIf null is specified for editor
If null or an empty string is specified for name
If an unavailable string is specified for name
If null is specified for modelClass
If 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 compatible