External Interfaces Reference |
Get property value from interface, or display properties
Syntax
Description
V = h.get
returns a list of all properties and their values for the object or interface, h
.
V = h.get('propertyname')
returns the value of the property specified in the string, propertyname
.
V = get(h, ...)
is an alternate syntax for the same operation.
Remarks
The meaning and type of the return value is dependent upon the specific property being retrieved. The object's documentation should describe the specific meaning of the return value. MATLAB may convert the data type of the return value. See Converting Data in the External Interfaces documentation for a description of how MATLAB converts COM data types.
Examples
Create a COM server running Microsoft Excel:
Retrieve a single property value:
Retrieve a list of all properties for the CommandBars
interface:
c = e.CommandBars.get ans = Application: [1x1 Interface.excel.application.CommandBars.Application] Creator: 1.4808e+009 ActionControl: [] ActiveMenuBar: [1x1 Interface.excel.application.CommandBars.ActiveMenuBar] Count: 94 DisplayTooltips: 1 DisplayKeysInTooltips: 0 LargeButtons: 0 MenuAnimationStyle: 'msoMenuAnimationNone' Parent: [1x1 Interface.excel.application.CommandBars.Parent] AdaptiveMenus: 0 DisplayFonts: 1
See Also
set
, inspect
, isprop
, addproperty
, deleteproperty
events | interfaces |
© 1994-2005 The MathWorks, Inc.