Export (0) Print
Expand All

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:
© 2014 Microsoft