在Microsoft.Office.Interop.Visio库中,每个实体(例如Shape)都被描述为一个类(ShapeClass)和一个接口Shape。为什么Office Interop API中有接口/类(IFoo,FooClass)模式?
因此,对于每一个元素你有:
interface Shape { ... }
class ShapeClass : Shape { ... }
interface Page { ... }
class PageClass : Page { ... }
...
为什么这样设计?
这可以帮助你了解一下:http://stackoverflow.com/questions/1051464/excel-interop-worksheet-or-worksheet/1051546#1051546 – 2009-07-31 15:16:33