Skip to main content

IModel.ChangeMetaclassTo Method

Namespace: NextDesign.Core

Description

Changes the class of this model to the specified class.

If the class of the model changes and the class of the owned related instance with the parent model becomes unavailable, the class of the owned related instance will be changed to the first class found.
Also, deletes the values of fields that cannot be maintained in the changed class.

Shapes that cannot be maintained in the changed class will be deleted.

Arguments

NameTypeDescription
metaclassIClassMetaclass.

Return value

  • void

Exceptions

NameException classDescription
Argument exceptionExtensionArgumentExceptionWhen null is specified for metaclass
Invalid operationExtensionInvalidOperationExceptionWhen an unchangeable class is specified for metaclass
When the model itself is a deleted model or a temporary proxy