External Interfaces Reference |
Remove custom property from object
Syntax
Description
h.deleteproperty('propertyname')
deletes the property specified in the string propertyname
from the custom properties belonging to object or interface, h
.
deleteproperty(h, 'propertyname')
is an alternate syntax for the same operation.
Note You can only delete properties that have been created with addproperty. |
Examples
Create an mwsamp
control and add a new property named Position
to it. Assign an array value to the property:
f = figure('position', [100 200 200 200]); h = actxcontrol('mwsamp.mwsampctrl.2', [0 0 200 200], f); h.get Label: 'Label' Radius: 20 h.addproperty('Position'); h.Position = [200 120]; h.get Label: 'Label' Radius: 20 Position: [200 120]
Delete the custom Position
property:
See Also
addproperty
, get
, set
, inspect
delete (COM) | eventlisteners |
© 1994-2005 The MathWorks, Inc.