필터 지우기
필터 지우기

Enumeration of COM object properties (Excel)

조회 수: 3 (최근 30일)
Matt C
Matt C 2021년 3월 27일
댓글: dpb 2021년 3월 27일
I find myself looking to the VB documentation to determine the enumeration of various COM object properties. In VB, the string xlHAlignLeft can be used, however only the numeric (-4131) can be used in MATLAB. Are the numeric values of these character array pairs defined anywhere on the COM application, such that they could be referenced to allow the string rather than the number to be used? Just curious.
  댓글 수: 3
Matt C
Matt C 2021년 3월 27일
Thank you for the definitive response. I will probably just write a library to streamline the process. There are actually a few different lists online of all the enumerations. One could try and read these with urlread() and build a class...but that sounds like a lot of work.
dpb
dpb 2021년 3월 27일
That or similar has always been my approach -- or just pick the ones of the C# header files of interest--I rarely use but a handful at any time from the gazillions there are.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by