Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: View Derived Types 

Class diagrams can display relationships between types, including inheritance relationships. An inheritance relationship can exist between two classes, between two interfaces, or between a class and an interface.

NoteNote

A type's base type name is always displayed within the shape header. In the case of multiple interfaces, where the list can get long, the list can be collapsed to conserve space.

This procedure assumes that an inheritance relationship exists between the type and its base class or interface. If no inheritance relationship exists, you can create one by following the steps in How to: Define Inheritance Between Types.

NoteNote

To view a derived type, an inheritance relationship must exist between two types. To define an inheritance relationship, see How to: Define Inheritance Between Types.

To display the types derived from the selected type

  1. On the class diagram, select the type for which you want to view its derived types.

  2. On the Class Diagram menu, Show Derived Classes or Show Derived Interfaces as appropriate.

    The shapes representing the derived classes or interfaces appear selected on the diagram. Any hidden inheritance lines now appear on the diagram.

You can also right-click the type and choose Show Derived Classes or Show Derived Interfaces as appropriate.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft