Main Content

addProperty

Class: target.AddOn
Namespace: target

Add a custom property to target.AddOn object

Since R2020b

Syntax

myAddOn.addProperty(propertyName, propertyType)

Description

myAddOn.addProperty(propertyName, propertyType) adds the property propertyName of type propertyType to the object myAddOn.

Input Arguments

expand all

Name of property that you want to add to object.

Example: exampleAddOn.addProperty('myPrptyName', 'myPrptyType')

Type of property that you want to add to object.

Example: exampleAddOn.addProperty('myPrptyName', 'myPrptyType')

Examples

Add Property to target.AddOn Object

For workflow examples that use this method, see Examples.

Version History

Introduced in R2020b

See Also