External Interfaces/API Reference |
Syntax
Arguments
h
Handle for a COM object that represents the interface to be released.
Description
Release the interface and all resources used by the interface. Each interface handle must be released when you are finished manipulating its properties and invoking its methods. Once an interface has been released, it is no longer valid and subsequent operations on the MATLAB object that represents that interface will result in errors.
Note
Releasing the interface will not delete the control itself (see delete ), since other interfaces on that object may still be active. See Releasing Interfaces in the External Interfaces/API documentation for more information.
|
Examples
Create a Microsoft Calender application. Then create a TitleFont
interface and use it to change the appearance of the font of the calendar's title:
f = figure('pos',[300 300 500 500]); cal = actxcontrol('mscal.calendar', [0 0 500 500], f); TFont = get(cal, 'TitleFont') TFont = Interface.mscal.calendar.TitleFont set(TFont, 'Name', 'Viva BoldExtraExtended'); set(TFont, 'Bold', 0);
When you're finished working with the title font, release the TitleFont
interface:
Now create a GridFont
interface and use it to modify the size of the calendar's date numerals:
When you're done, delete the cal
object and the figure window:
See Also
delete
, save
, load
, actxcontrol
, actxserver
registerevent (COM) | save (COM) |