External Interfaces Reference Previous page   Next Page
addproperty

Add custom property to object

Syntax

Description

h.addproperty('propertyname') adds the custom property specified in the string, propertyname, to the object or interface, h. Use set to assign a value to the property.

addproperty(h, 'propertyname') is an alternate syntax for the same operation.

Examples

Create an mwsamp control and add a new property named Position to it. Assign an array value to the property:

Delete the custom Position property:

See Also

deleteproperty, get, set, inspect


Previous page  actxserver delete (COM) Next page

© 1994-2005 The MathWorks, Inc.