addProperty
为构造型定义自定义属性
说明
返回一个新的 property
= addProperty(stereotype
,name
)property
定义,其中 name
包含在 stereotype
中。
要删除属性,请使用 removeProperty
函数。
返回使用指定的名称-值参量配置的 property
= addProperty(stereotype
,name
,Name=Value
)property
定义。
示例
输入参数
名称-值参数
输出参量
详细信息
版本历史记录
在 R2019a 中推出
另请参阅
工具
模块
对象
systemcomposer.profile.Profile
|systemcomposer.profile.Stereotype
|systemcomposer.profile.Property
函数
systemcomposer.profile.Profile.createProfile
|systemcomposer.loadProfile
|applyProfile
|removeProfile
|renameProfile
|systemcomposer.profile.editor
|systemcomposer.profile.Profile.find
|systemcomposer.profile.Profile.load
|save
|open
|close
|systemcomposer.profile.Profile.closeAll
|systemcomposer.profile.Stereotype.find
|getDefaultStereotype
|setDefaultStereotype
|getDefaultElementStereotype
|setDefaultElementStereotype
|addStereotype
|removeStereotype
|getStereotype
|applyStereotype
|batchApplyStereotype
|getStereotypes
|changeStereotype
|removeStereotype
|hasStereotype
|removeProperty
|hasProperty
|setProperty
|getProperty
|getPropertyValue
|getEvaluatedPropertyValue
|getStereotypeProperties
|applyStereotypeOrder
|getStereotypeNamesByOrder
|increaseStereotypeOrder
|decreaseStereotypeOrder