Contents

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

get (COM)

Get property value from interface, or display properties

Syntax

V = get(h)
V = get(h,'name')

Description

V = get(h) returns a list of all properties and their values for the object or interface, h.

If V is empty, either there are no properties in the object, or MATLAB® cannot read the object's type library. Refer to the COM vendors documentation.

V = get(h,'name') returns value of property specified in string, name.

COM functions are available on Microsoft® Windows® systems only.

Examples

Create a COM server running Microsoft Excel® software:

e = actxserver('Excel.Application');

Retrieve a single property value.

e.Path
ans =
   C:\Program Files\MSOffice\OFFICE11

MATLAB displays the path to your program.

List of all properties for the CommandBars interface.

c = CommandBars.get(e)

MATLAB displays information for your version of Excel.

More About

expand all

Tips

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. For a description of how MATLAB converts COM data types, see Handling COM Data in MATLAB Software.

Was this topic helpful?