External Interfaces/API Reference |
Remove custom property from COM object
Syntax
Arguments
h
Handle for a COM object previously returned from actxcontrol
, actxserver
, get
, or invoke
.
propertyname
A string specifying the name of the custom property to delete.
Description
Delete a property, propertyname
, from the custom properties belonging to object or interface, h
. 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('pos', [100 200 200 200]); h = actxcontrol('mwsamp.mwsampctrl.2', [0 0 200 200], f); get(h) Label: 'Label' Radius: 20 addproperty(h, 'Position'); set(h, 'Position', [200 120]); get(h) Label: 'Label' Radius: 20 Position: [200 120]
Delete the custom Position
property:
See Also
addproperty
, get
, set
, inspect
delete (COM) | eventlisteners (COM) |