removeProperty

Remove a property from a stereotype

Description

removeProperty(stereotype,propertyName) removes a property from the stereotype.

Examples

collapse all

Add a component stereotype and add a VoltageRating property with value 5. Then remove the property.

stype = addStereotype(profile,'electricalComponent','AppliesTo','Component')
property = addProperty(stype,'VoltageRating','DefaultValue','5');
removeProperty(stype,'VoltageRating');

Input Arguments

collapse all

Introduced in R2019a