Excel interop: _Worksheet or Worksheet?

前端 未结 5 1908
刺人心
刺人心 2020-11-28 07:46

I\'m currently writing about dynamic typing, and I\'m giving an example of Excel interop. I\'ve hardly done any Office interop before, and it shows. The MSDN Office Interop

5条回答
  •  情话喂你
    2020-11-28 08:38

    Classes and Interfaces for Internal Use Only

    Avoid directly using any of the following classes and interfaces, which are used internally and are typically not used directly.

    Class/Interface : Examples

    classid Class : ApplicationClass (Word or Excel), WorksheetClass (Excel)

    classid Events x _SinkHelper : ApplicationEvents4_SinkHelper (Word), WorkbookEvents_SinkHelper (Excel)

    _classid : _Application (Word or Excel), _Worksheet (Excel)

    classid Events x : ApplicationEvents4 (Word), AppEvents (Excel)

    I classid Events x : IApplicationEvents4 (Word), IAppEvents (Excel)

    http://msdn.microsoft.com/en-gb/library/ms247299(office.11).aspx

    edit: (re: formatting of this answer) cannot correctly format an escaped underscore followed immediately by italic text. Shows correctly in preview but broken when posted

    edit2: works if you make the underscore itself italic which is conceptually horrible but looks the same I suppose

提交回复
热议问题