IViewDefinitions.NewCustomElementDef method
Namespace: NextDesign.Core
Description
Generates a custom editor element definition for the given model class.
argument
Name | Type | Description |
---|---|---|
editor | ICustomEditorDefinition | Custom editor definition Cannot be null. |
name | string | Custom editor element definition name You cannot specify null or an empty string. |
modelClass | IClass | Model metaclass Cannot be null. |
elementTypeId | string | Editor element type identifier You cannot specify null or an empty string. |
path | string | Specify null for elements that do not correspond to the path string field of the corresponding metaclass. The default is null. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If 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 found | ExtensionFieldNotFoundException | If the field specified in the path is not found |
Unsupported | ExtensionNotSupportedException | If the current edition of the application does not support it |