Hello, I am documenting an ActiveX library that has a large heirarchical structure where some interfaces inherit from a parent interface. In Document! X, the methods and properties of the parent interface are duplicated for each descendent interface. Is there a way to prevent this and only have the topics created for the base interface? Many thanks for any help.
Date
Votes
2 comments
-
Richard Sloggett There is no inheritance in COM, so the interfaces won't automatically identify the parent interface. You can use the "All Content From" Content Item Type in order to re-use the descriptions from another interface - so you would document one of the interfaces and then use the "All Content From" Content Item type on the others to re-use it's content.
-
Alan Clark
Many thanks for the response. In Delphi, you can define automation interfaces as being a sub-class of another interface. But, evidently this is simulated inheritance, and behind the scenes it just copies everything from the base to the sub-class. I will try the "All Content From" solution.
Please sign in to leave a comment.