Main Content

addProperty

Class: target.AddOn
Package: target

Add a custom property to target.AddOn object

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.

See Also

Introduced in R2020b