External Interfaces/API Reference |
Set an interface property to a specific value
Syntax
Arguments
h
Handle for a COM object previously returned from actxcontrol
, actxserver
, get
, or invoke
.
propertyname
A string that is the name of the property to be set.
value
The value to which the interface property is set.
Description
Set one or more properties of a COM object to the specified value(s). Each propertyname
argument must be followed by a value
argument.
See Converting Data in the External Interfaces documentation for information on how MATLAB converts workspace matrices to COM data types.
Examples
Create an mwsamp
control and use set
to change the Label
and Radius
properties:
f = figure ('pos', [100 200 200 200]); h = actxcontrol ('mwsamp.mwsampctrl.1', [0 0 200 200], f); set(h, 'Label', 'Click to fire event', 'Radius', 40); invoke(h, 'Redraw');
See Also
get
, inspect
, isprop
, addproperty
, deleteproperty
send (COM) | unregisterallevents (COM) |