IDiagram.AddNodeShape method
Namespace: NextDesign.Core
Description
Adds a node shape corresponding to the given model.
However, if the corresponding node shape already exists and is hidden, it will be shown.
argument
Name | Type | Description |
---|---|---|
model | IModel | The model represented by the node shape to be added You cannot specify null. |
shapeDef | IElementDef | The editor element definition of the node shape to add If null is specified, look up the editor element definition from the specified model's metaclass. The default is null. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for model |
View element definition not found | ExtensionInvalidTypeException | If the specified editor element definition is not a shape definition If the specified editor element definition is not included in the list of editor element definitions for the diagram Editor element If null is specified in the definition and no shape definition corresponding to the specified model is found If an editor element definition that does not correspond to the specified model is specified |